More classes.
This commit is contained in:
parent
c653f084ce
commit
ca1c5e6373
1 changed files with 3 additions and 0 deletions
|
@ -212,6 +212,7 @@ def remove_unwanted_classes_ids(soup):
|
||||||
r'large',
|
r'large',
|
||||||
r'mbp_?pagebreak',
|
r'mbp_?pagebreak',
|
||||||
r'morespaceabove',
|
r'morespaceabove',
|
||||||
|
r'noindent\d*',
|
||||||
r'nonindent\d*',
|
r'nonindent\d*',
|
||||||
r'p_?[ivx]+',
|
r'p_?[ivx]+',
|
||||||
r'p_?\d+',
|
r'p_?\d+',
|
||||||
|
@ -223,10 +224,12 @@ def remove_unwanted_classes_ids(soup):
|
||||||
r'pgepubid\d*',
|
r'pgepubid\d*',
|
||||||
r'right',
|
r'right',
|
||||||
r'section',
|
r'section',
|
||||||
|
r'space[Bb]reak',
|
||||||
r'spaceabove',
|
r'spaceabove',
|
||||||
r'squeeze(\d+)?',
|
r'squeeze(\d+)?',
|
||||||
r'stickupcaps',
|
r'stickupcaps',
|
||||||
r'title',
|
r'title',
|
||||||
|
r'xrefInternal',
|
||||||
]
|
]
|
||||||
for tag in soup.descendants:
|
for tag in soup.descendants:
|
||||||
if not isinstance(tag, bs4.element.Tag):
|
if not isinstance(tag, bs4.element.Tag):
|
||||||
|
|
Loading…
Reference in a new issue