BIM: fix Wiki links in BIM Tutorial

This commit is contained in:
Roy-043
2024-12-14 16:30:05 +01:00
committed by Yorik van Havre
parent b64549b348
commit 7d2c10f4c1

View File

@@ -113,7 +113,7 @@ class BIM_Tutorial:
if sys.version_info.major >= 3:
html = html.decode("utf8")
html = html.replace("\n", " ")
html = html.replace('"/wiki/', '"https://www.freecadweb.org/wiki/')
html = html.replace('href="/', 'href="https://wiki.freecad.org/')
html = re.sub(
'<div id="toc".*?</ul> </div>', "", html
) # remove table of contents