Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue 56: Adds extra_indent arguments #57

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions web/template.py
Expand Up @@ -542,7 +542,7 @@ class TextNode:
def __init__(self, value):
self.value = value

def emit(self, indent):
def emit(self, indent, begin_indent=''):
return repr(safeunicode(self.value))

def __repr__(self):
Expand All @@ -558,7 +558,7 @@ def __init__(self, value, escape=True):

self.escape = escape

def emit(self, indent):
def emit(self, indent, begin_indent=''):
return 'escape_(%s, %s)' % (self.value, bool(self.escape))

def __repr__(self):
Expand Down Expand Up @@ -638,7 +638,7 @@ class StatementNode:
def __init__(self, stmt):
self.stmt = stmt

def emit(self, indent):
def emit(self, indent, begin_indent=''):
return indent + self.stmt

def __repr__(self):
Expand Down