gildas-lormeau / SingleFile

Web Extension for saving a faithful copy of a complete web page in a single HTML file
GNU Affero General Public License v3.0
14.88k stars 979 forks source link

Issue with SVG tags while scraping a HTML. #1164

Closed anilabhadatta closed 1 year ago

anilabhadatta commented 1 year ago

The texts are moving out of place while scraping a webpage. Original HTML: image

Scraped HTML: image

Left Original, Right Scraped The br tags are inserted while scraping image

anilabhadatta commented 1 year ago

@gildas-lormeau Please take a look into this.

gildas-lormeau commented 1 year ago

I would need the URL of the page in order to understand what's wrong.

anilabhadatta commented 1 year ago

@gildas-lormeau This website requires a subscription to view the page. https://www.educative.io/module/page/Y6GKZ1igOAW0XJlmE/10370001/5565721689194496/4808500040695808 Maybe getting a 7 day trial may give you access [Uploading Introduction - Fundamentals of Machine Learning for Software Engineers.zip…]()

gildas-lormeau commented 1 year ago

Out of curiosity, does disabling Images > save deferred images in the options page of SingleFile change anything?

anilabhadatta commented 1 year ago

@gildas-lormeau checked the issue is still there. Introduction - Fundamentals of Machine Learning for Software Engineers (5_17_2023 3_28_59 AM).zip

gildas-lormeau commented 1 year ago

@anilabhadatta I fixed some issues related to CSS and SVG in the last version. Is this issue still reproducible?

anilabhadatta commented 1 year ago

@gildas-lormeau Working perfectly fine. Thank you so much, will implement your latest js file in my scraper.

gildas-lormeau commented 1 year ago

Great, I'm glad to hear it :). Thank you for your feedback, I think I can close this issue now.