Skip to content

Commit a210f53

Browse files
committed
fix: EOL while scanning string literal
1 parent b21caf2 commit a210f53

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mkdocs_embed_file_plugins/plugin.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,12 @@ def on_post_page(self, output_content, page, config) -> str:
218218
callout = self.config['callouts']
219219
for link in soup.findAll(
220220
'img',
221-
src=lambda src: src is not None and 'favicon' not in src and not src.endswith(
222-
('png', 'jpg', 'jpeg', 'gif', 'svg')) and not 'www' in src and not 'http' in src and not '://' in src',
221+
src=lambda src: src is not None
222+
and 'favicon' not in src
223+
and not src.endswith(('png', 'jpg', 'jpeg', 'gif', 'svg'))
224+
and not 'www' in src
225+
and not 'http' in src
226+
and not '://' in src,
223227
):
224228
if len(link['src']) > 0:
225229

0 commit comments

Comments
 (0)