From 9b6470b2d48b0cf7c5fa7abb66cc9b0009daf272 Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Wed, 25 Apr 2018 21:24:09 -0400 Subject: Minor reorder --- pycco/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pycco/main.py b/pycco/main.py index b82cadb..065be25 100644 --- a/pycco/main.py +++ b/pycco/main.py @@ -252,12 +252,13 @@ def highlight(sections, language, preserve_paths=True, outdir=None): raise TypeError("Missing the required 'outdir' keyword argument.") divider_text = language["divider_text"] + lexer = language["lexer"] + divider_html = language["divider_html"] + joined_text = divider_text.join( section["code_text"].rstrip() for section in sections ) - lexer = language["lexer"] html_formatter = formatters.get_formatter_by_name("html") - divider_html = language["divider_html"] output = pygments.highlight( joined_text, lexer, html_formatter -- cgit v1.2.1