Dreamsorcerer opened a new issue #1772: collapse_whitespace in <code> URL: https://github.com/apache/incubator-pagespeed-mod/issues/1772 The documentation says: > ..is normally ignored by the browser outside of tags like <pre> and <textarea>, one can use CSS properties such as "white-space: pre" to make the browser preserve whitespace within a portion of the document.. It would be nice if collapse_whitespace would also ignore <code> tags, as these are quite a common case for "white-space: pre". Additionally, MDN says: > The HTML <code> element displays its contents styled in a fashion intended to indicate that the text is a short fragment of computer code. Based on that description, it's plausible that a browser may choose to pay attention to whitespace, where it normally wouldn't (given that, for example, Python code without the whitespace would be invalid code). So, skipping <code> content would make this filter a fair bit safer to use.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services