Split long line

This commit is contained in:
Daniel Rojas 2020-11-15 10:55:11 +01:00
parent 37c8e19961
commit 7d0cc07b1d

View File

@ -30,7 +30,8 @@ def embed_svg_images(fn):
images_b64[imgurl] = data_str images_b64[imgurl] = data_str
else: # only cache every image once else: # only cache every image once
print(' ❌This URL is not new') print(' ❌This URL is not new')
line = line.replace(imgurl, f'data:image/png;base64, {images_b64[imgurl]}') line = line.replace(imgurl,
f'data:image/png;base64, {images_b64[imgurl]}')
file_out.write(line) file_out.write(line)
print(f'Embedded {num_images} instances of {len(images_b64)} different images.') print(f'Embedded {num_images} instances of {len(images_b64)} different images.')