From a0727a6d34bf654c772d5cbf57b5e48906e9d95d Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Thu, 2 Apr 2009 14:14:30 +0200 Subject: [PATCH] Broken overlong line. --HG-- branch : trunk --- jinja2/lexer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jinja2/lexer.py b/jinja2/lexer.py index 3a925bb..919cba8 100644 --- a/jinja2/lexer.py +++ b/jinja2/lexer.py @@ -152,7 +152,8 @@ def compile_rules(environment): r'^\s*' + e(environment.line_statement_prefix))) if environment.line_comment_prefix is not None: rules.append((len(environment.line_comment_prefix), 'linecomment', - r'(?:^|(?<=\S))[^\S\r\n]*' + e(environment.line_comment_prefix))) + r'(?:^|(?<=\S))[^\S\r\n]*' + + e(environment.line_comment_prefix))) return [x[1:] for x in sorted(rules, reverse=True)] -- 2.26.2