From d1865644385ddbfab97ebc337cbe6315327ffd19 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Thu, 30 Mar 2023 13:01:21 +0200 Subject: [PATCH] Strip image URL to avoid some errors --- mkdocs_rss_plugin/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkdocs_rss_plugin/util.py b/mkdocs_rss_plugin/util.py index 35264c38..30928d8d 100644 --- a/mkdocs_rss_plugin/util.py +++ b/mkdocs_rss_plugin/util.py @@ -420,9 +420,9 @@ def get_image(self, in_page: Page, base_url: str) -> tuple: :rtype: tuple """ if in_page.meta.get("image"): - img_url = in_page.meta.get("image") + img_url = in_page.meta.get("image").strip() elif in_page.meta.get("illustration"): - img_url = in_page.meta.get("illustration") + img_url = in_page.meta.get("illustration").strip() else: return None