From 8ca35c14a212d0900b12375a17f3ba4259777c60 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Fri, 24 Apr 2015 22:29:23 +0200 Subject: [PATCH] manual: fix script --- docs/manual/update_listings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/manual/update_listings.py b/docs/manual/update_listings.py index d41f18527..575c8e36d 100755 --- a/docs/manual/update_listings.py +++ b/docs/manual/update_listings.py @@ -84,11 +84,11 @@ def latexText(text, ref_prefix): brief = brief.replace(" in the BTstack manual","") - refs = re.match('.*Listing\s*\s*(\w+)(?:.|\s).*',brief) + refs = re.match('.*Listing\s+(\w+).*',brief) if refs: brief = brief.replace(refs.group(1), "\\ref{listing:"+ref_prefix+":" + refs.group(1)+"}") - refs = re.match('.*(Section\s*)(\w*).*',brief, re.I) + refs = re.match('.*(Section\s)(\w+).*',brief) if refs: brief = brief.replace(refs.group(2), "\\ref{section:"+refs.group(2)+"}")