mirror of
https://git.nolog.cz/NoLog.cz/headline.git
synced 2025-01-31 03:43:35 +01:00
Fix typo
This commit is contained in:
parent
502b472c07
commit
eedc4d198c
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ from diff_match_patch import diff_match_patch
|
|||
class DiffThing(diff_match_patch):
|
||||
def diff_html(self, diffs):
|
||||
"""Like diff_prettyHtml, but without inline style attributes
|
||||
(makes it easier to style it with stylesheets).
|
||||
(makes it easier to style it with ).
|
||||
"""
|
||||
html = []
|
||||
for op, data in diffs:
|
||||
|
@ -27,7 +27,7 @@ class DiffThing(diff_match_patch):
|
|||
if op == self.DIFF_INSERT:
|
||||
html.append("<ins>%s</ins>" % text)
|
||||
elif op == self.DIFF_DELETE:
|
||||
html.append('<del">%s</del>' % text)
|
||||
html.append("<del>%s</del>" % text)
|
||||
elif op == self.DIFF_EQUAL:
|
||||
html.append("<span>%s</span>" % text)
|
||||
return "".join(html)
|
||||
|
|
Loading…
Reference in a new issue