From 7171c73e3fce0d9f96cda7de991eb9b4eb489542 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Sun, 26 Feb 2017 18:26:27 -0800 Subject: [PATCH] sweet cheese & crackers --- pollen/private/pipe.py | 10 +++++----- pollen/private/ts.rktd | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pollen/private/pipe.py b/pollen/private/pipe.py index 98c4643..3b78f30 100644 --- a/pollen/private/pipe.py +++ b/pollen/private/pipe.py @@ -31,7 +31,7 @@ parser.add_option('--cssclass', default="source", dest="cssclass") lexer = "" code = "" -lines-to-highlight = "" +lines_to_highlight = "" py_version = sys.version_info.major sys.stdout.write("ready\n") sys.stdout.flush() @@ -48,7 +48,7 @@ while 1: formatter = HtmlFormatter(linenos=options.linenos, cssclass=options.cssclass, encoding="utf-8", - hl_lines=lines-to-highlight) + hl_lines=lines_to_highlight) if py_version >= 3: sys.stdout.write(highlight(code, lexer, formatter).decode("utf-8")) else: @@ -57,17 +57,17 @@ while 1: sys.stdout.flush() lexer = "" code = "" - lines-to-highlight = "" + lines_to_highlight = "" elif lexer == "": # Starting another lex. First line is the lexer name. try: lexer = get_lexer_by_name(line, encoding="guess") except ClassNotFound: lexer = get_lexer_by_name("text", encoding="guess") - elif lines-to-highlight == "": + elif lines_to_highlight == "": # Starting another lex. Second line is list of lines to highlight, # formatted as string of whitespace-separated integers - lines-to-highlight = [int(str) for str in line.split()] + lines_to_highlight = [int(str) for str in line.split()] else: # Accumulate more code # Use `line_raw`: Do want trailing space, \n, \r diff --git a/pollen/private/ts.rktd b/pollen/private/ts.rktd index affbdba..9e8c3a6 100644 --- a/pollen/private/ts.rktd +++ b/pollen/private/ts.rktd @@ -1 +1 @@ -1488160788 +1488162387