summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wikimini/templates/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wikimini/templates/__init__.py b/wikimini/templates/__init__.py
index 58a5db8..360b3fa 100644
--- a/wikimini/templates/__init__.py
+++ b/wikimini/templates/__init__.py
@@ -31,6 +31,7 @@ class Registry:
Returns:
The template if found, or :any:`None`.
"""
+ name = name.strip()
# Are templates case-sensitive?
# Yes, except usually the first letter.
# (https://en.wikipedia.org/wiki/Help:A_quick_guide_to_templates#FAQ)