Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix for issue 56: Adds extra_indent arguments #57

Closed
wants to merge 1 commit into from

2 participants

@dylan-evans

Adds extra begin_indent arguments to nodes which don't use them in order to handle the argument being passed to all nodes in several places.

@anandology
Collaborator

Applied.

@anandology anandology closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 29, 2011
  1. @dylan-evans
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 web/template.py
View
6 web/template.py
@@ -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):
@@ -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):
@@ -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):
Something went wrong with that request. Please try again.