create_manpage_completions: Remove trailing period

Turns out this was on purpose, but we've been telling people to do
away with them for quite a while.
This commit is contained in:
Fabian Homborg 2020-04-25 11:22:41 +02:00
parent c0542727c4
commit 5ca527b2fe

View File

@ -206,6 +206,8 @@ def built_command(options, description):
else:
# No fit
break
# Strip trailing dots
truncated_description = truncated_description.strip(udot)
# If the first sentence does not fit, truncate if necessary
if len(truncated_description) > max_description_width: