[Reproducible-commits] [debbindiff] 19/19: Fix newline and tab handling in HTML presenter
Jérémy Bobbio
lunar at moszumanska.debian.org
Tue Mar 31 14:59:30 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch pu/feed-diff
in repository debbindiff.
commit 4509154fbc50666200fe9fed3f7f7ad9d539785f
Author: Jérémy Bobbio <lunar at debian.org>
Date: Mon Mar 30 18:45:53 2015 +0200
Fix newline and tab handling in HTML presenter
---
debbindiff/presenters/html.py | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/debbindiff/presenters/html.py b/debbindiff/presenters/html.py
index 13a299e..f2e74ef 100644
--- a/debbindiff/presenters/html.py
+++ b/debbindiff/presenters/html.py
@@ -264,11 +264,6 @@ def convert(s, ponct=0):
elif c == DIFFOFF:
t += u"</span>"
- elif ord(c) < 32:
- conv = u"\\x%x" % ord(c)
- t += u"<em>%s</em>" % conv
- i += len(conv)
-
# special highlighted chars
elif c == "\t" and ponct == 1:
n = TABSIZE-(i%TABSIZE)
@@ -279,6 +274,10 @@ def convert(s, ponct=0):
t += u'<span class="diffponct">·</span>'
elif c == "\n" and ponct == 1:
t += u'<br/><span class="diffponct">\</span>'
+ elif ord(c) < 32:
+ conv = u"\\x%x" % ord(c)
+ t += u"<em>%s</em>" % conv
+ i += len(conv)
else:
t += cgi.escape(c)
i += 1
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debbindiff.git
More information about the Reproducible-commits
mailing list