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('%s ' % title)