Explorar el Código

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 hace 9 años
padre
commit
7bbeb6899a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      mwparserfromhell/nodes/tag.py

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

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



Cargando…
Cancelar
Guardar