Changeset b5d6b46c0a2e…
Parent ff74e1221229…
by
Changes to one file · Browse files at b5d6b46c0a2e Showing diff from parent ff74e1221229 Diff from another changeset...
@@ -897,7 +897,7 @@ lines = chunk.readlines()
lines[-1] = lines[-1].strip('\n\r')
for line in lines:
- line = gobject.markup_escape_text(toutf(line))
+ line = gobject.markup_escape_text(toutf(line[:128]))
if line.startswith('---') or line.startswith('+++'):
hunk += '<span foreground="#000090">%s</span>' % line
elif line.startswith('-'):
@@ -916,7 +916,7 @@ lines = fp.readlines()
lines[-1] = lines[-1].strip('\n\r')
for line in lines:
- hunk += gobject.markup_escape_text(toutf(line))
+ hunk += gobject.markup_escape_text(toutf(line[:128]))
return hunk
def dohgdiff():
|
Loading...