html2docx
html2docx copied to clipboard
parse_dict_string raising excemptions in edge cases
Hi,
FYI, the following line in parse_dict_string in h2d.py assumes that string x will only have 1 colon
string_dict = dict([x.split(':') for x in new_string if ':' in x])
I've had some HTML which break this assumption, with the following string - note the two colons
background-image:url('https://....')
Sorry, no useful solution to offer. I'm simply catching and ignoring the exception to satisfy my short-term goals.
David.
Thanks for picking this up. There is also no support yet for background-image
(as in your example).