Changeset - 65b6797b102d
[Not reviewed]
default
0 1 0
Mads Kiilerich - 9 years ago 2017-01-06 01:43:51
mads@kiilerich.com
templates: div inside pre is not valid html - use span instead
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/helpers.py
Show inline comments
 
@@ -156,13 +156,13 @@ class CodeHtmlFormatter(HtmlFormatter):
 
    def wrap(self, source, outfile):
 
        return self._wrap_div(self._wrap_pre(self._wrap_code(source)))
 

	
 
    def _wrap_code(self, source):
 
        for cnt, it in enumerate(source):
 
            i, t = it
 
            t = '<div id="L%s">%s</div>' % (cnt + 1, t)
 
            t = '<span id="L%s">%s</span>' % (cnt + 1, t)
 
            yield i, t
 

	
 
    def _wrap_tablelinenos(self, inner):
 
        dummyoutfile = StringIO.StringIO()
 
        lncount = 0
 
        for t, line in inner:
0 comments (0 inline, 0 general)