[Reproducible-commits] [debbindiff] 03/03: Fix tab handling in HTML presenter

Jérémy Bobbio lunar at moszumanska.debian.org
Sat Mar 28 09:57:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository debbindiff.

commit 7b9a5891f26e63a91ab5fdedbc5360cd1bf8d258
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sat Mar 28 10:56:55 2015 +0100

    Fix tab handling in HTML presenter
    
    Thanks Helmut Grohne for spotting the issue.
---
 debbindiff/presenters/html.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debbindiff/presenters/html.py b/debbindiff/presenters/html.py
index cbfe65c..f0fc273 100644
--- a/debbindiff/presenters/html.py
+++ b/debbindiff/presenters/html.py
@@ -270,9 +270,9 @@ def convert(s, linesize=0, ponct=0):
 
         # special highlighted chars
         elif c == "\t" and ponct == 1:
-            n = tabsize-(i%tabsize)
+            n = TABSIZE-(i%TABSIZE)
             if n == 0:
-                n = tabsize
+                n = TABSIZE
             t += (u'<span class="diffponct">»</span>'+' '*(n-1))
         elif c == " " and ponct == 1:
             t += u'<span class="diffponct">·</span>'

-- 
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