digitalsparky / jekyll-minifier

Jekyll HTML/XML/CSS/JS Minifier utilising yui-compressor, and htmlcompressor
GNU General Public License v3.0
245 stars 25 forks source link

in feed.xml newlines in pre/code tags are not preserved #34

Open fabsenet opened 6 years ago

fabsenet commented 6 years ago

Hi, I have a page with a feed, the post contains multiline-code with newlines, the feed has still the code tag but all is in one paragraph now without newlines! I am not sure, what is wrong. My blog is not really far off from the jekyll default+minima?

the blog source is at https://github.com/fabsenet/blog_de the blog runs at https://fabse.net the feed (excluded from minifier) is at https://fabse.net/feed.xml

I created a gist with trimmed feed.xml files, one with the minifier and one with no minification: https://gist.github.com/fabsenet/3a4e88f0f5643f6f69a84e42cd17e28d The minified version has all text in a single line so this is clearly wrong?!

A good example is the latest post, search for "isLedOn" (it is contained in this post: rendered / markdown)

I am not sure, maybe I configured something wrong? But all I know is, the end result is wrong and I had to disable minification of the feed.

Can you guys give me a hint?

i asked the guys from the jekyll-feed plugin first, because i failed to disable the minifier at first: https://github.com/jekyll/jekyll-feed/issues/196