mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-23 19:20:51 +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):
|
||||
if not text:
|
||||
return ""
|
||||
brief = text.replace(" in the BTstack manual","")
|
||||
|
||||
brief = text.replace("_","\_")
|
||||
# TODO: restore paths
|
||||
paths_orig = re.findall(r'(\\path{.*})', brief)
|
||||
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)
|
||||
if refs:
|
||||
|
Loading…
x
Reference in New Issue
Block a user