1
0
mirror of https://github.com/django/django.git synced 2025-04-05 22:16:41 +00:00

[3.0.x] Made versionadded/versionchanged annotations without a content end with ".".

Regression in d2afa5eb2308e672b6313876856e32e2561b90f3.
Backport of 5032556483f16b0b5f182e393eb5c6548fc505be from master
This commit is contained in:
Sergey Fedoseev 2019-11-21 13:03:18 +05:00 committed by Mariusz Felisiak
parent ae2e13504b
commit 409cd7b944

View File

@ -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)