Skip to content

Commit

Permalink
Markdown filter: put back in trailing spaces to handle implicit <br>
Browse files Browse the repository at this point in the history
  • Loading branch information
boscoh committed Jun 14, 2013
1 parent 8b72bd0 commit 92021ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hamlpy/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ def _render(self):

self.before = self.render_newlines()[1:]
indent_offset = len(self.children[0].spaces)
text = ''.join(''.join([c.spaces[indent_offset:], c.haml, c.render_newlines()]) for c in self.children)
text = ''.join(''.join([c.spaces[indent_offset:], c.raw_haml.lstrip(), c.render_newlines()]) for c in self.children)
self.before += markdown(text)
else:
self.after = self.render_newlines()

0 comments on commit 92021ae

Please sign in to comment.