Skip to content

Commit

Permalink
based on feedback - extend the tests of when to add a period
Browse files Browse the repository at this point in the history
  • Loading branch information
samccann committed May 7, 2024
1 parent 63b547f commit bde13d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/antsibull_changelog/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def from_dict(
for plugin_type, plugin_data in data.items():
for plugin_name, plugin_details in plugin_data.items():
description = plugin_details["description"]
if description and not description.endswith("."):
if description and not description.endswith((".", ",", "!", "?")):
description += "."
plugins.append(
PluginDescription(
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/test_changelog_basic_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ def test_changelog_release_simple( # pylint: disable=redefined-outer-name
},
{
"name": "test_new4",
"description": "This is yet another test module!.",
"description": "This is yet another test module!",
"namespace": "",
},
]
Expand Down Expand Up @@ -1186,7 +1186,7 @@ def test_changelog_release_simple( # pylint: disable=redefined-outer-name
New Modules
-----------
- acme.test.test_new4 - This is yet another test module!.
- acme.test.test_new4 - This is yet another test module!
Foo
~~~
Expand Down

0 comments on commit bde13d2

Please sign in to comment.