From 35747cee40b311856b80beae25c15747d895134a Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Tue, 24 Aug 2021 14:01:29 +0200 Subject: fix empty return of tmpl_quote --- wikimini/templates/quotes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))] -- cgit v1.2.3