fixed styling bug in write_html_image_list
This commit is contained in:
Родитель
37441bcb8b
Коммит
ff141cd6b7
|
@ -48,6 +48,8 @@ def write_html_image_list(filename=None,images=None,options=None):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
print(options)
|
||||||
|
|
||||||
# returns an options struct
|
# returns an options struct
|
||||||
if options is None:
|
if options is None:
|
||||||
options = {}
|
options = {}
|
||||||
|
@ -84,8 +86,7 @@ def write_html_image_list(filename=None,images=None,options=None):
|
||||||
# enforce that it's the latter to simplify downstream code
|
# enforce that it's the latter to simplify downstream code
|
||||||
for iImage,imageInfo in enumerate(images):
|
for iImage,imageInfo in enumerate(images):
|
||||||
if isinstance(imageInfo,str):
|
if isinstance(imageInfo,str):
|
||||||
imageInfo = {'filename':imageInfo,'imageStyle':'','title':'',
|
imageInfo = {'filename':imageInfo}
|
||||||
'textStyle':'','linkTarget':''}
|
|
||||||
if 'filename' not in imageInfo:
|
if 'filename' not in imageInfo:
|
||||||
imageInfo['filename'] = ''
|
imageInfo['filename'] = ''
|
||||||
if 'imageStyle' not in imageInfo:
|
if 'imageStyle' not in imageInfo:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче