Commits

Andriy Kornatskyy committed 270c2ec

At least one space is meaningful in markup.

  • Participants
  • Parent commits a488be8

Comments (0)

Files changed (1)

src/wheezy/html/ext/template.py

 import re
 
 
-from wheezy.html.ext.lexer import InlinePreprocessor
 from wheezy.html.ext.lexer import Preprocessor
 from wheezy.html.ext.lexer import WhitespacePreprocessor
 
 
 whitespace_preprocessor = WhitespacePreprocessor(
     rules=[
-        (re.compile(r'^[ \t]+', re.MULTILINE),
+        (re.compile(r'^ [ \t]+', re.MULTILINE),
             r''),
         (re.compile(r'>\s*<', re.MULTILINE),
             r'><'),