Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pystache/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


END_OF_LINE_CHARACTERS = [u'\r', u'\n']
NON_BLANK_RE = re.compile(ur'^(.)', re.M)
NON_BLANK_RE = re.compile(u'^(.)', re.M)


# TODO: add some unit tests for this.
Expand Down Expand Up @@ -147,7 +147,7 @@ def __repr__(self):
def render(self, engine, context):
template = engine.resolve_partial(self.key)
# Indent before rendering.
template = re.sub(NON_BLANK_RE, self.indent + ur'\1', template)
template = re.sub(NON_BLANK_RE, self.indent + u'\\1', template)

return engine.render(template, context)

Expand Down