1. Simon Meers
  2. django-bbcode

Commits

David Cramer  committed ec9167b

Quotes have a 1:1 tag: blockquote

  • Participants
  • Parent commits 368f2a5
  • Branches default

Comments (0)

Files changed (1)

File bbcode/bbtags/text_formatting.py

View file
  • Ignore whitespace
     def parse(self):
         gd = self.match.groupdict()
         if gd['cite']:
-            return '<div class="quote"><cite>%s</cite>%s</div>' % (gd['cite'], self.parse_inner())
-        return '<div class="quote">%s</div>' % self.parse_inner()
+            return '<blockquote><cite>%s</cite>%s</blockquote>' % (gd['cite'], self.parse_inner())
+        return '<blockquote>%s</blockquote>' % self.parse_inner()
 
 
 class Text(ArgumentTagNode):