Commit 042b607a authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_corporate_identity: img tag may have no alt attribute

parent 5da539b1
......@@ -38,7 +38,7 @@ for figure in re.findall('(<img.*?/>)', document_content or ''):
# no alt attribute = skip an image from being included
figure_title = re.findall(match_content, figure) or blank
if figure_title[0] == blank:
if figure_title == blank or figure_title[0] == blank:
continue
figure_count = figure_count + 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment