Browse Source

Fix ordering of tag representation

Self-closing wiki syntax tags have incorrectly ordered wiki syntax
and padding, fixed the ordering.
tags/v0.4
David Winegar 9 years ago
parent
commit
7bbeb6899a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mwparserfromhell/nodes/tag.py

+ 1
- 1
mwparserfromhell/nodes/tag.py View File

@@ -65,7 +65,7 @@ class Tag(Node):
close = self.closing_wiki_markup if self.closing_wiki_markup else ""
padding = self.padding if self.padding else ""
if self.self_closing:
return self.wiki_markup + attrs + close + padding
return self.wiki_markup + attrs + padding + close
else:
return self.wiki_markup + attrs + padding + str(self.contents) + close



Loading…
Cancel
Save