remy / inliner

Node utility to inline images, CSS and JavaScript for a web page - useful for mobile sites
MIT License
1.1k stars 165 forks source link

fix: keep whitespaces and newlines in pre and textareas #56

Closed hsablonniere closed 9 years ago

hsablonniere commented 9 years ago

The whitespace processing was not working :-(

Cheerio .html() setter does not seem to accept functions (docs & source).

I also added whitespaces handling for pre (just like textarea). It was useful for my use case which contains indented code. Was it related to the comment I removed : // TODO put white space helper back in?