regex for finding :ref: labels was flawed

The regex to find labels inside of angle brackets was not detecting
anything before so I missed all of those.
* Fixed the regex in find-plugin-refs to take care of that.
* Fixed plugin_formatter to emit namespaced labels for the M() macro.
This commit is contained in:
Toshio Kuratomi 2018-04-18 07:28:31 -07:00
commit f9d83944ec
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ def plugin_names(topdir):
def process_refs(topdir, plugin_names):
REF_RE = re.compile(':ref:`([^`]*)`')
LABEL_RE = re.compile('<[^>]*>`$')
LABEL_RE = re.compile('<([^>]*)>$')
# Walk the whole docs tree looking for :ref:. Anywhere those are found, search for `([^`]*)`
for dirpath, dirnames, filenames in os.walk(topdir):