From 5032556483f16b0b5f182e393eb5c6548fc505be Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Thu, 21 Nov 2019 13:03:18 +0500 Subject: [PATCH] Made versionadded/versionchanged annotations without a content end with ".". Regression in d2afa5eb2308e672b6313876856e32e2561b90f3. --- docs/_ext/djangodocs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)