prettify code after image generation
This commit is contained in:
parent
ebedef2bef
commit
640f41619c
@ -110,4 +110,5 @@ async def generate_images(code, image_cache):
|
||||
print("Image generation failed for alt text:" + img.get("alt"))
|
||||
|
||||
# Return the modified HTML
|
||||
return str(soup)
|
||||
# (need to prettify it because BeautifulSoup messes up the formatting)
|
||||
return soup.prettify()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user