浏览代码

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 年前
父节点
当前提交
7bbeb6899a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      mwparserfromhell/nodes/tag.py

+ 1
- 1
mwparserfromhell/nodes/tag.py 查看文件

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



正在加载...
取消
保存