summaryrefslogtreecommitdiff
path: root/docs/bin
diff options
context:
space:
mode:
authorDag Wieers <dag@wieers.com>2018-09-27 20:25:38 +0200
committerAlicia Cozine <879121+acozine@users.noreply.github.com>2018-09-27 13:25:38 -0500
commit771a3983d26139261bfcd092f5b5f031bafafc77 (patch)
treeebf3cfc02cb0fb1eadb8f69c5901443aea95b40a /docs/bin
parentaedcf9fed7a1d335bf4c4fe5db81238647062e2d (diff)
downloadansible-771a3983d26139261bfcd092f5b5f031bafafc77.tar.gz
Docs: Keep the module index clean (#46155)
A lot of modules have a short_description with a trailing dot even though we don't want trailing dots in the index. This change removes it when creating the document index.
Diffstat (limited to 'docs/bin')
-rwxr-xr-xdocs/bin/plugin_formatter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/bin/plugin_formatter.py b/docs/bin/plugin_formatter.py
index 3f627bcf83..ef92ed7280 100755
--- a/docs/bin/plugin_formatter.py
+++ b/docs/bin/plugin_formatter.py
@@ -689,7 +689,7 @@ def main():
display.vv(key)
display.vvvvv(pp.pformat(('record', record)))
if record.get('doc', None):
- short_desc = record['doc']['short_description']
+ short_desc = record['doc']['short_description'].rstrip('.')
if short_desc is None:
display.warning('short_description for %s is None' % key)
short_desc = ''