summaryrefslogtreecommitdiff
path: root/lib/ansible/cli/doc.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/cli/doc.py')
-rwxr-xr-xlib/ansible/cli/doc.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ansible/cli/doc.py b/lib/ansible/cli/doc.py
index bbf1966a4f..0c50d81eec 100755
--- a/lib/ansible/cli/doc.py
+++ b/lib/ansible/cli/doc.py
@@ -408,10 +408,10 @@ class DocCLI(CLI, RoleMixin):
t = cls._RULER.sub("\n{0}\n".format("-" * 13), t) # HORIZONTALLINE => -------
# remove rst
- t = cls._RST_SEEALSO.sub(r"See website for:", t) # seealso is special and need to break
- t = cls._RST_NOTE.sub(r"Note:", t) # .. note:: to note:
- t = cls._RST_ROLES.sub(r"website for `", t) # remove :ref: and other tags
- t = cls._RST_DIRECTIVES.sub(r"", t) # remove .. stuff:: in general
+ t = cls._RST_SEEALSO.sub(r"See also:", t) # seealso to See also:
+ t = cls._RST_NOTE.sub(r"Note:", t) # .. note:: to note:
+ t = cls._RST_ROLES.sub(r"`", t) # remove :ref: and other tags, keep tilde to match ending one
+ t = cls._RST_DIRECTIVES.sub(r"", t) # remove .. stuff:: in general
return t