Open Bug 361507 Opened 19 years ago Updated 14 years ago

[PatchReader] Show line changes character by character

Categories

(Bugzilla :: Attachments & Requests, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: steffen.wilberg, Unassigned)

References

Details

Patch Viewer should not only show changes line by line, but also character by character, using a darker color. Example: http://bugs.beryl-project.org/trac/changeset/1338 Other diff apps do this as well, e.g. kompare (IIRC).
Very interesting. Do you know what tool or algorithm they're using to generate that? diff certainly doesn't do it, as far as I know.
The Beryl project uses the Trac bug tracking system: http://trac.edgewall.org/. After browsing the Trac source for a while, I found it: http://trac.edgewall.org/browser/trunk/trac/versioncontrol/diff.py See diff_blocks and _get_change_extent. They're inserting <del> tags around deleted characters and <ins> tags around inserted ones within a line, which are then styled by css: http://trac.edgewall.org/browser/trunk/htdocs/css/diff.css
Priority: -- → P3
Summary: make Patch Viewer show changes character by character → [PatchReader] Show line changes character by character
You need to log in before you can comment on or make changes to this bug.