Browse Source

Added block trimming to generated statements

main
Lakshmi Vyasarajan 14 years ago
parent
commit
cf96db8d83
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      hyde/ext/templates/jinja.py

+ 2
- 2
hyde/ext/templates/jinja.py View File

@@ -391,13 +391,13 @@ class Jinja2Template(Template):
"""
Returns an open tag statement.
"""
return '{%% %s %s %%}' % (tag, params)
return '{%% %s %s -%%}' % (tag, params)

def get_close_tag(self, tag, params):
"""
Returns an open tag statement.
"""
return '{%% end%s %%}' % tag
return '{%%- end%s %%}' % tag


def render(self, text, context):


Loading…
Cancel
Save