From 3c6c97a8ab01ad9a4ad561afd579f1975cd14885 Mon Sep 17 00:00:00 2001 From: Kevin Zita Date: Tue, 3 Oct 2023 00:05:29 -0600 Subject: [PATCH] updating based on PR comment --- pelican/tools/pelican_import.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py index 996fb498..1a67a21b 100755 --- a/pelican/tools/pelican_import.py +++ b/pelican/tools/pelican_import.py @@ -468,9 +468,9 @@ def tumblr2fields(api_key, blogname): fmtstr = '%s' content = '' for photo in post.get('photos'): - content += fmtstr % (photo.get('caption'), - photo.get('original_size').get('url')) - content += '\n\n' + post.get('caption') + content += '\n'.join(fmtstr % (photo.get('caption'), + photo.get('original_size').get('url')) + for photo in post.get('photos')) elif type == 'quote': if format == 'markdown': fmtstr = '\n\n— %s'