summaryrefslogtreecommitdiff
path: root/docs/_ext
diff options
context:
space:
mode:
Diffstat (limited to 'docs/_ext')
-rw-r--r--docs/_ext/djangodocs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py
index 6f8c112539..d33d48a1eb 100644
--- a/docs/_ext/djangodocs.py
+++ b/docs/_ext/djangodocs.py
@@ -153,7 +153,7 @@ class DjangoHTMLTranslator(HTMLTranslator):
if version_text:
title = "%s%s" % (
version_text % node['version'],
- ":" if node else "."
+ ":" if len(node) else "."
)
self.body.append('<span class="title">%s</span> ' % title)