Skip to content

Commit

Permalink
[2.2.x] Made versionadded/versionchanged annotations without a conten…
Browse files Browse the repository at this point in the history
…t end with ".".

Regression in d2afa5e.
Backport of 5032556 from master
  • Loading branch information
sir-sigurd authored and felixxm committed Nov 21, 2019
1 parent 11e4200 commit 9c0fed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_ext/djangodocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def visit_versionmodified(self, node):
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)

Expand Down

0 comments on commit 9c0fed5

Please sign in to comment.