Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
7bbeb6899a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      mwparserfromhell/nodes/tag.py

+ 1
- 1
mwparserfromhell/nodes/tag.py Näytä tiedosto

@@ -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



Ladataan…
Peruuta
Tallenna