summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2021-08-24 14:01:29 +0200
committerDaniel Schadt <kingdread@gmx.de>2021-08-24 14:01:29 +0200
commit35747cee40b311856b80beae25c15747d895134a (patch)
tree94a00d0d51c3decb0e0928afae835ce60d0aa59d
parentf6d1d4cdc69cee7b603830d375949008a22b2540 (diff)
downloadwikimini-35747cee40b311856b80beae25c15747d895134a.tar.gz
wikimini-35747cee40b311856b80beae25c15747d895134a.tar.bz2
wikimini-35747cee40b311856b80beae25c15747d895134a.zip
fix empty return of tmpl_quote
-rw-r--r--wikimini/templates/quotes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wikimini/templates/quotes.py b/wikimini/templates/quotes.py
index 5951543..e0c3cbf 100644
--- a/wikimini/templates/quotes.py
+++ b/wikimini/templates/quotes.py
@@ -8,7 +8,7 @@ def tmpl_quote(wikimini, obj):
"""Renders the ``{{blockquote|...}}`` template."""
text = obj.get("text", None)
if not text:
- return ""
+ return []
content = wikimini.convert_to_document(text.value).nodes()
return [BlockQuote(Paragraph(content))]