fixed styling bug in write_html_image_list

This commit is contained in:
Dan Morris 2023-04-26 18:58:37 -07:00
Родитель 37441bcb8b
Коммит ff141cd6b7
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -48,6 +48,8 @@ def write_html_image_list(filename=None,images=None,options=None):
"""
print(options)
# returns an options struct
if options is None:
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
for iImage,imageInfo in enumerate(images):
if isinstance(imageInfo,str):
imageInfo = {'filename':imageInfo,'imageStyle':'','title':'',
'textStyle':'','linkTarget':''}
imageInfo = {'filename':imageInfo}
if 'filename' not in imageInfo:
imageInfo['filename'] = ''
if 'imageStyle' not in imageInfo: