mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
don't trim whitespace in sections
This commit is contained in:
parent
5c4d7b1789
commit
425789535f
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ class Template(object):
|
|||
"""Compiles our section and tag regular expressions."""
|
||||
tags = { 'otag': re.escape(self.otag), 'ctag': re.escape(self.ctag) }
|
||||
|
||||
section = r"%(otag)s[\#|^]([^\}]*)%(ctag)s\s*(.+?)\s*%(otag)s/\1%(ctag)s"
|
||||
section = r"%(otag)s[\#|^]([^\}]*)%(ctag)s(.+?)%(otag)s/\1%(ctag)s"
|
||||
self.section_re = re.compile(section % tags, re.M|re.S)
|
||||
|
||||
tag = r"%(otag)s(#|=|&|!|>|\{)?(.+?)\1?%(ctag)s+"
|
||||
|
|
Loading…
Reference in a new issue