Ver a proveniência

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 há 9 anos
ascendente
cometimento
7bbeb6899a
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      mwparserfromhell/nodes/tag.py

+ 1
- 1
mwparserfromhell/nodes/tag.py Ver ficheiro

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



Carregando…
Cancelar
Guardar