# HG changeset patch # User Mads Kiilerich # Date 2017-01-06 01:43:51 # Node ID 65b6797b102d48170b755c82525dffd75c4dcc6d # Parent 2c1c03581874032c10a0be8bcbbbba83d1921618 templates: div inside pre is not valid html - use span instead diff --git a/kallithea/lib/helpers.py b/kallithea/lib/helpers.py --- a/kallithea/lib/helpers.py +++ b/kallithea/lib/helpers.py @@ -159,7 +159,7 @@ class CodeHtmlFormatter(HtmlFormatter): def _wrap_code(self, source): for cnt, it in enumerate(source): i, t = it - t = '
%s
' % (cnt + 1, t) + t = '%s' % (cnt + 1, t) yield i, t def _wrap_tablelinenos(self, inner):