mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update NatGeo
This commit is contained in:
parent
f4d87127a6
commit
165f5ccff4
@ -54,7 +54,7 @@ def parse_inline(inl):
|
||||
yield '<div class="img"><img src="{}"></div>'.format(props['image']['src'])
|
||||
if 'caption' in props:
|
||||
yield '<div class="cap">{}<span class="cred">{}</span></div>'.format(
|
||||
props['caption']['text'], ' ' + props['caption']['credit']
|
||||
props['caption'].get('text', ''), ' ' + props['caption'].get('credit', '')
|
||||
)
|
||||
yield '</p>'
|
||||
if inl.get('content', {}).get('name', '') == 'ImageGroup':
|
||||
@ -65,7 +65,7 @@ def parse_inline(inl):
|
||||
yield '<div class="img"><img src="{}"></div>'.format(imgs['src'])
|
||||
if 'caption' in imgs:
|
||||
yield '<div class="cap">{}<span class="cred">{}</span></div>'.format(
|
||||
imgs['caption']['text'], ' ' + imgs['caption']['credit']
|
||||
imgs['caption'].get('text', ''), ' ' + imgs['caption'].get('credit', '')
|
||||
)
|
||||
yield '</p>'
|
||||
|
||||
|
@ -53,7 +53,7 @@ def parse_inline(inl):
|
||||
yield '<div class="img"><img src="{}"></div>'.format(props['image']['src'])
|
||||
if 'caption' in props:
|
||||
yield '<div class="cap">{}<span class="cred">{}</span></div>'.format(
|
||||
props['caption']['text'], ' ' + props['caption']['credit']
|
||||
props['caption'].get('text', ''), ' ' + props['caption'].get('credit', '')
|
||||
)
|
||||
yield '</p>'
|
||||
if inl.get('content', {}).get('name', '') == 'ImageGroup':
|
||||
@ -64,7 +64,7 @@ def parse_inline(inl):
|
||||
yield '<div class="img"><img src="{}"></div>'.format(imgs['src'])
|
||||
if 'caption' in imgs:
|
||||
yield '<div class="cap">{}<span class="cred">{}</span></div>'.format(
|
||||
imgs['caption']['text'], ' ' + imgs['caption']['credit']
|
||||
imgs['caption'].get('text', ''), ' ' + imgs['caption'].get('credit', '')
|
||||
)
|
||||
yield '</p>'
|
||||
|
||||
|
@ -58,7 +58,7 @@ def parse_inline(inl):
|
||||
yield '<div class="img"><img src="{}"></div>'.format(props['image']['src'])
|
||||
if 'caption' in props:
|
||||
yield '<div class="cap">{}<span class="cred">{}</span></div>'.format(
|
||||
props['caption']['text'], ' ' + props['caption']['credit']
|
||||
props['caption'].get('text', ''), ' ' + props['caption'].get('credit', '')
|
||||
)
|
||||
yield '</p>'
|
||||
if inl.get('content', {}).get('name', '') == 'ImageGroup':
|
||||
@ -69,7 +69,7 @@ def parse_inline(inl):
|
||||
yield '<div class="img"><img src="{}"></div>'.format(imgs['src'])
|
||||
if 'caption' in imgs:
|
||||
yield '<div class="cap">{}<span class="cred">{}</span></div>'.format(
|
||||
imgs['caption']['text'], ' ' + imgs['caption']['credit']
|
||||
imgs['caption'].get('text', ''), ' ' + imgs['caption'].get('credit', '')
|
||||
)
|
||||
yield '</p>'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user