mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
removing newline char when interating post photos
This commit is contained in:
parent
2eeff62fd7
commit
46e1da379e
1 changed files with 2 additions and 3 deletions
|
|
@ -468,9 +468,8 @@ def tumblr2fields(api_key, blogname):
|
|||
fmtstr = '<img alt="%s" src="%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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue