From 46e1da379e312bef9b3de31789e3cee7bf049b5b Mon Sep 17 00:00:00 2001 From: Kevin Zita Date: Fri, 25 Aug 2023 18:35:45 -0600 Subject: [PATCH] removing newline char when interating post photos --- pelican/tools/pelican_import.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py index 7833ebbe..996fb498 100755 --- a/pelican/tools/pelican_import.py +++ b/pelican/tools/pelican_import.py @@ -468,9 +468,8 @@ def tumblr2fields(api_key, blogname): fmtstr = '%s' content = '' for photo in post.get('photos'): - content += '\n'.join( - fmtstr % (photo.get('caption'), - photo.get('original_size').get('url'))) + content += fmtstr % (photo.get('caption'), + photo.get('original_size').get('url')) content += '\n\n' + post.get('caption') elif type == 'quote': if format == 'markdown':