summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2019-11-21 13:03:18 +0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-11-21 09:03:44 +0100
commit409cd7b9448b1af7616ae76934e1b936194fe1e2 (patch)
tree67db04c6f7fd73d1d4772bd4992d66fcfd2b3d23 /docs
parentae2e13504b9a72a4e816af578d66bf14c9cbf1bb (diff)
[3.0.x] Made versionadded/versionchanged annotations without a content end with ".".
Regression in d2afa5eb2308e672b6313876856e32e2561b90f3. Backport of 5032556483f16b0b5f182e393eb5c6548fc505be from master
Diffstat (limited to 'docs')
-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)