X-Git-Url: https://git.armaanb.net/?p=stagit.git;a=blobdiff_plain;f=highlight.py;h=2b81d8cee6538cdbec506abee73f9220d590fca3;hp=eb146e7849033bd475f2eff7bd46fbbd0b8dbfb1;hb=3c00e328b546283294871232e65e39b9d2b80041;hpb=bda0c0dc3edd12eac75e700e98d2b7e2c4b771f2 diff --git a/highlight.py b/highlight.py index eb146e7..2b81d8c 100755 --- a/highlight.py +++ b/highlight.py @@ -46,14 +46,15 @@ formatter = HtmlFormatter( anchorlinenos=True, ) +outp = "" if rendered: - print('
') - print(rendered) - print("
") -print('
') -print(highlight(contents, lexer, formatter)) -print("
") -print('{highlight(contents, lexer, formatter)}"' +outp += '