From 75f58993b1b5bb98b08b2a5ae2d6c53f26a4b29e Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Fri, 24 Jan 2014 13:20:57 +0000 Subject: [PATCH] Fixed display of tabs in normal/wordwrap mode --- dpaste/templatetags/dpaste_tags.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dpaste/templatetags/dpaste_tags.py b/dpaste/templatetags/dpaste_tags.py index c6b59e4..88572c9 100644 --- a/dpaste/templatetags/dpaste_tags.py +++ b/dpaste/templatetags/dpaste_tags.py @@ -11,4 +11,5 @@ def in_list(value, arg): def highlight(snippet): h = pygmentize(snippet.content, snippet.lexer) h = h.replace(u' ', u'  ') + h = h.replace(u'\t', '    ') return h.splitlines()