diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py index 5f637c73..3c40dd56 100755 --- a/pelican/tools/pelican_import.py +++ b/pelican/tools/pelican_import.py @@ -370,6 +370,7 @@ def tumblr2fields(api_key, blogname): else: fmtstr = '%s' content = '\n'.join(fmtstr % (photo.get('caption'), photo.get('original_size').get('url')) for photo in post.get('photos')) + content += '\n\n' + post.get('caption') elif type == 'quote': if format == 'markdown': fmtstr = '\n\n— %s' @@ -398,6 +399,8 @@ def tumblr2fields(api_key, blogname): title = post.get('question') content = '

%s: %s

\n%s' % (post.get('asking_name'), post.get('asking_url'), post.get('question'), post.get('answer')) + content = content.rstrip() + '\n' + yield (title, content, slug, date, post.get('blog_name'), [type], tags, format) offset += len(posts)