From 02f21a9ca9f9842502f8b89cf77aafc05082bcf1 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 16 Aug 2021 16:59:08 +0200 Subject: fix default header value for tabulate --- wikimini/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3