mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
0d825ec9bc
commit
6d93f94e80
@ -15,6 +15,7 @@ def get_contents(x):
|
||||
if 'emphasis' in x['attributes']:
|
||||
return '<i>' + x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) + '</i>'
|
||||
return x.get('value', '') + ''.join(map(get_contents, x.get('content', '')))
|
||||
return x.get('value', '') + ''.join(map(get_contents, x.get('content', '')))
|
||||
elif otype == 'br':
|
||||
return '<br>'
|
||||
elif otype == 'paragraph':
|
||||
|
@ -16,6 +16,7 @@ def get_contents(x):
|
||||
if 'emphasis' in x['attributes']:
|
||||
return '<i>' + x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) + '</i>'
|
||||
return x.get('value', '') + ''.join(map(get_contents, x.get('content', '')))
|
||||
return x.get('value', '') + ''.join(map(get_contents, x.get('content', '')))
|
||||
elif otype == 'br':
|
||||
return '<br>'
|
||||
elif otype == 'paragraph':
|
||||
|
Loading…
x
Reference in New Issue
Block a user