Split long line
This commit is contained in:
parent
37c8e19961
commit
7d0cc07b1d
@ -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.')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user