Skip to content

Commit 3f58c62

Browse files
committed
Fix use of deprecated API
1 parent 52cfe5b commit 3f58c62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

post-process-html.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ def remove_unwanted_meta(soup):
127127

128128

129129
def remove_tex4ht_comments(soup):
130-
for e in soup.find_all(text=lambda text:isinstance(text, Doctype)):
130+
for e in soup.find_all(string=lambda text:isinstance(text, Doctype)):
131131
remove_following_newline(e)
132132
e.extract()
133133

134-
for e in soup.find_all(text=lambda text:isinstance(text, Comment)):
134+
for e in soup.find_all(string=lambda text:isinstance(text, Comment)):
135135
if 'fn-in,' in e.string or e.string.startswith('?xml') or e.string.startswith('http://www.w3.org/TR/xhtml1'):
136136
remove_following_newline(e)
137137
e.extract()

0 commit comments

Comments
 (0)