Remove extra whitespace added by templates
Minor thing but noticed this with my scraper, particularly with the link domain element but I'm sure it happens in other places too.
After rendering a template, the extra whitespace used to make it readable also gets added to the HTML output:
In the link domain example, say the link is https://youtube.com/...
the domain will become youtube.com\n\s\s\s\s\s\s\s
. It seems (at least Firefox and Chrome) the browser does a good job of just not caring about it but getting rid of it would be good in my opinion.
Actual HTML with the extra spaces: