[wp-trac] [WordPress Trac] #48574: Create better post diff screens
WordPress Trac
noreply at wordpress.org
Tue Nov 12 19:45:19 UTC 2019
#48574: Create better post diff screens
-------------------------+-----------------------------
Reporter: seanleavey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Revisions | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Post diffs showing the difference between post revisions have always been
in raw form, showing differences in post HTML and not ''visual''
differences. With the addition of the Gutenberg editor to WordPress, there
is now even more HTML shown due to the inclusion of block settings as
comments. Additionally, Gutenberg blocks such as figures or lists create
one-line HTML strings so small changes to list items result in one huge
line change on the diff screen. It seems like now is the time to consider
improving the post diff screen, and changing the way Gutenberg blocks
generate their HTML to allow for cleaner diffs.
See the attached image for an example of a block that could have been
generated across multiple lines such that the addition of a link didn't
generate 12 lines of diff.
I suppose this feature request is twofold:
- Improve the diff page UI to show visual diffs (but keep the current
"raw" mode as an option).
- Make sure Gutenberg block HTML is cleanly formatted across multiple
lines to improve line-based diffs used on the post diff screen.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48574>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list