summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2021-08-16 16:59:08 +0200
committerDaniel Schadt <kingdread@gmx.de>2021-08-16 16:59:08 +0200
commit02f21a9ca9f9842502f8b89cf77aafc05082bcf1 (patch)
tree5dc9389ce6cecb10139c3481a4c258e6e638b55a
parent0c034d016788d4d946c83df825819951bbb860ac (diff)
downloadwikimini-02f21a9ca9f9842502f8b89cf77aafc05082bcf1.tar.gz
wikimini-02f21a9ca9f9842502f8b89cf77aafc05082bcf1.tar.bz2
wikimini-02f21a9ca9f9842502f8b89cf77aafc05082bcf1.zip
fix default header value for tabulate
-rw-r--r--wikimini/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wikimini/__init__.py b/wikimini/__init__.py
index d034d30..397c539 100644
--- a/wikimini/__init__.py
+++ b/wikimini/__init__.py
@@ -167,7 +167,7 @@ def _convert(obj: Union[mwp.nodes.Node, mwp.wikicode.Wikicode]) -> str:
return ""
elif str(obj.tag) == "table":
rows = []
- header = None
+ header = ()
for row in obj.contents.nodes:
if str(getattr(row, "tag", "")) != "tr":
continue