Skip to content

Commit 5f0b776

Browse files
committed
Fix "this is not available in \1" messages in reference
1 parent 85c4837 commit 5f0b776

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/build_docs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,14 +400,14 @@ def add_link(jsondata):
400400
dprefix = "This is only available in ";
401401
if re.match(r'^!defined\((.+?)\) && !defined\((.+?)\)$', d):
402402
dprefix = "This is not available in ";
403-
d = re.sub(r'^!defined\((.+?)\) && !defined\((.+?)\)$', r"defined(\\1) or defined(\\2)", d)
403+
d = re.sub(r'^!defined\((.+?)\) && !defined\((.+?)\)$', r"defined(\1) or defined(\2)", d)
404404
if re.match(r'^!defined\((.+?)\)$', d):
405405
dprefix = "This is not available in ";
406-
d = re.sub(r'^!defined\((.+?)\)$', r"defined(\\1)", d)
406+
d = re.sub(r'^!defined\((.+?)\)$', r"defined(\1)", d)
407407
d = re.sub(r'!defined\(', r"not defined(", d)
408408
d = d.replace("||", " and ").replace("&&", " with ")
409409
d = re.sub(r'defined\((.+?)\)', replace_with_ifdef_description, d)
410-
d = re.sub(r'(.*)_COUNT>=(.*)', r"devices with more than \\2 \\1 peripherals", d)
410+
d = re.sub(r'(.*)_COUNT>=(.*)', r"devices with more than \2 \1 peripherals", d)
411411
desc.append("\n\n**Note:** "+dprefix+d);
412412
html_description(desc, jsondata["name"])
413413

0 commit comments

Comments
 (0)