Skip to content

Commit 1e340e8

Browse files
authored
Improve: strip image URL to avoid common errors (#180)
2 parents 9d117cd + d186564 commit 1e340e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mkdocs_rss_plugin/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ def get_image(self, in_page: Page, base_url: str) -> tuple:
420420
:rtype: tuple
421421
"""
422422
if in_page.meta.get("image"):
423-
img_url = in_page.meta.get("image")
423+
img_url = in_page.meta.get("image").strip()
424424
elif in_page.meta.get("illustration"):
425-
img_url = in_page.meta.get("illustration")
425+
img_url = in_page.meta.get("illustration").strip()
426426
else:
427427
return None
428428

0 commit comments

Comments
 (0)