From 0a2dda2060de481a4b29d3e940dc6faec277929c Mon Sep 17 00:00:00 2001 From: John R Barker Date: Mon, 5 Mar 2018 19:18:24 +0000 Subject: [PATCH] Support
in module docs (#37030) --- docs/bin/plugin_formatter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/bin/plugin_formatter.py b/docs/bin/plugin_formatter.py index d44244a705..12a034f62e 100755 --- a/docs/bin/plugin_formatter.py +++ b/docs/bin/plugin_formatter.py @@ -77,6 +77,7 @@ _MODULE = re.compile(r"M\(([^)]+)\)") _URL = re.compile(r"U\(([^)]+)\)") _LINK = re.compile(r"L\(([^)]+),([^)]+)\)") _CONST = re.compile(r"C\(([^)]+)\)") +_RULER = re.compile(r"HORIZONTALLINE") DEPRECATED = b" (D)" @@ -94,6 +95,7 @@ def rst_ify(text): t = _LINK.sub(r"`\1 <\2>`_", t) t = _URL.sub(r"\1", t) t = _CONST.sub(r"`\1`", t) + t = _RULER.sub(r"------------", t) except Exception as e: raise AnsibleError("Could not process (%s) : %s" % (text, e)) @@ -113,6 +115,7 @@ def html_ify(text): t = _URL.sub(r"\1", t) t = _LINK.sub(r"\1", t) t = _CONST.sub(r"\1", t) + t = _RULER.sub(r"
", t) return t