# HG changeset patch # User Paul Boddie # Date 1461872831 -7200 # Node ID 91685df316d4c16f2cf1cb8af26923c265fff668 # Parent eca860a4fe9bc7de01538c2105c5921f3e7d7bff Added support for syntax highlighting, requiring a patch for hgext.highlight. diff -r eca860a4fe9b -r 91685df316d4 patches/patch-hgext-highlight-xmlescape.diff --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/patch-hgext-highlight-xmlescape.diff Thu Apr 28 21:47:11 2016 +0200 @@ -0,0 +1,9 @@ +diff -r 72d7d390ef5d hgext/highlight/highlight.py +--- a/hgext/highlight/highlight.py Thu Mar 19 10:18:05 2015 -0700 ++++ b/hgext/highlight/highlight.py Thu Apr 28 21:44:17 2016 +0200 +@@ -64,4 +64,5 @@ + + oldl = tmpl.cache[field] + newl = oldl.replace('line|escape', 'line|colorize') ++ newl = oldl.replace('line|xmlescape', 'line|colorize') + tmpl.cache[field] = newl diff -r eca860a4fe9b -r 91685df316d4 themes/mercurialweb/map --- a/themes/mercurialweb/map Tue Mar 11 23:25:09 2014 +0100 +++ b/themes/mercurialweb/map Thu Apr 28 21:47:11 2016 +0200 @@ -67,7 +67,7 @@ filedifflink = '{file|xmlescape} ' fileellipses = '...' -fileline = '{linenumber} {line|xmlescape}' +fileline = '{linenumber} {line|xmlescape}' filenolink = '{file|xmlescape} ' filenodelink = '{file|xmlescape} (file) ' diff -r eca860a4fe9b -r 91685df316d4 themes/mercurialweb/static/style-mercurialweb.css --- a/themes/mercurialweb/static/style-mercurialweb.css Tue Mar 11 23:25:09 2014 +0100 +++ b/themes/mercurialweb/static/style-mercurialweb.css Thu Apr 28 21:47:11 2016 +0200 @@ -499,6 +499,10 @@ overflow: auto; } +.source span.line { + display: block; +} + .file, .diff { overflow: hidden; }