1. David Cramer
  2. django-bbcode

Commits

David Cramer  committed 3812735

Strip extra trailing/leading whitespace from code

  • Participants
  • Parent commits 8989de8
  • Branches default

Comments (0)

Files changed (1)

File bbcode/bbtags/text_formatting.py

View file
         inner = ''
         for node in self.nodes:
             inner += node.raw_content
+        inner = inner.strip()
         if highlight is None:
             return '<pre>%s</pre>' % inner
         if self.arguments['lang']: