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