mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-02 16:20:31 +00:00
manual: restore latex paths in script
This commit is contained in:
parent
4ed90f33e2
commit
f96bcf527f
@ -78,11 +78,14 @@ def replacePlaceholder(template, title, lable):
|
|||||||
def latexText(text, ref_prefix):
|
def latexText(text, ref_prefix):
|
||||||
if not text:
|
if not text:
|
||||||
return ""
|
return ""
|
||||||
|
brief = text.replace(" in the BTstack manual","")
|
||||||
|
|
||||||
brief = text.replace("_","\_")
|
paths_orig = re.findall(r'(\\path{.*})', brief)
|
||||||
# TODO: restore paths
|
brief = brief.replace("_","\_")
|
||||||
|
paths_new = re.findall(r'(\\path{.*})', brief)
|
||||||
|
|
||||||
brief = brief.replace(" in the BTstack manual","")
|
for i in range(len(paths_orig)):
|
||||||
|
brief = brief.replace(paths_new[i], paths_orig[i])
|
||||||
|
|
||||||
refs = re.match('.*Listing\s+(\w+).*',brief)
|
refs = re.match('.*Listing\s+(\w+).*',brief)
|
||||||
if refs:
|
if refs:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user