We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52cfe5b commit 3f58c62Copy full SHA for 3f58c62
post-process-html.py
@@ -127,11 +127,11 @@ def remove_unwanted_meta(soup):
127
128
129
def remove_tex4ht_comments(soup):
130
- for e in soup.find_all(text=lambda text:isinstance(text, Doctype)):
+ for e in soup.find_all(string=lambda text:isinstance(text, Doctype)):
131
remove_following_newline(e)
132
e.extract()
133
134
- for e in soup.find_all(text=lambda text:isinstance(text, Comment)):
+ for e in soup.find_all(string=lambda text:isinstance(text, Comment)):
135
if 'fn-in,' in e.string or e.string.startswith('?xml') or e.string.startswith('http://www.w3.org/TR/xhtml1'):
136
137
0 commit comments