forked from docs/doc-exports
trying fixing the broken condition when checking the 'a' links
Reviewed-by: tischrei <tino.schreiber@t-systems.com> Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
This commit is contained in:
parent
0749423d6d
commit
9506c3feb1
@ -265,7 +265,7 @@ class OTCDocConvertor:
|
|||||||
for lnk in soup.body.find_all("a"):
|
for lnk in soup.body.find_all("a"):
|
||||||
if (
|
if (
|
||||||
lnk.string is None
|
lnk.string is None
|
||||||
and hasattr(lnk, "name")
|
and lnk.has_attr("name")
|
||||||
and not re.match(r"^li\d+$", lnk.attrs["name"])
|
and not re.match(r"^li\d+$", lnk.attrs["name"])
|
||||||
# anywhere section
|
# anywhere section
|
||||||
and not re.match(r".*section\d+$", lnk.attrs["name"])
|
and not re.match(r".*section\d+$", lnk.attrs["name"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user