ci: fixed

This commit is contained in:
Nicolas 2025-10-15 23:15:43 +02:00
parent efd56e1a7a
commit 1384bcddd0
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ def main() -> None:
args = parser.parse_args() args = parser.parse_args()
regex = r"(\:\n)(.*?)(^[^\n]+\n[^\n]+result_.*?\n\n)" regex = r"(\:\n)(.*?)(^[^\n]+\n[^\n]+result_.*?\n\n)"
subst = "\\g<1><em>\\g<2></em><i>\\g<3></i>" subst = "\\g<1><b>\\g<2></b><i>\\g<3></i>"
with open(args.path, 'rt') as f: with open(args.path, 'rt') as f:
text = f.read() text = f.read()
@ -20,7 +20,7 @@ def main() -> None:
text = re.sub(regex, subst, text, 0, re.MULTILINE | re.DOTALL) text = re.sub(regex, subst, text, 0, re.MULTILINE | re.DOTALL)
text = re.sub(r" +", "&nbsp;", text, 0, re.MULTILINE | re.DOTALL) text = re.sub(r"(?<= ) ", "&nbsp;", text, 0, re.MULTILINE | re.DOTALL)
print('<code>') print('<code>')
for line in text.splitlines(): for line in text.splitlines():