GerHobbelt/google-diff-match-patch

diff_prettyHtml output hard-codes color for <ins> and <del>

Closed this issue · 1 comments

The HTML output includes hard-coded styles that specify the green/red colors 
for insert/delete. This means that overriding the default colors requires a 
Python code change. Leaving the tags bare would mean that the color can be 
easily tweaked via CSS instead.

https://code.google.com/p/google-diff-match-patch/source/browse/trunk/python2/di
ff_match_patch.py#1075

Here's an example patch (on the python2  version): 
https://bitbucket.org/pbx/diff-match-patch/commits/65b5b3

Original issue reported on code.google.com by paul.bissex on 10 Jul 2013 at 12:59

  • Merged into: #43
diff_prettyHtml is only intended to be an example from which to write your own 
renderer.

Original comment by neil.fra...@gmail.com on 10 Jul 2013 at 3:39

  • Changed state: Duplicate