nzakas / cssembed

A tool for embedding data URIs in CSS files.
http://www.nczonline.net/
389 stars 30 forks source link

Insert newline between base64 value and next multipart separator #17

Open niklasl opened 13 years ago

niklasl commented 13 years ago

In my tests with IE7 on Win XP, a newline is needed between a base64 value and the following next multipart separator. The simplest fix seems to be to change Line 235 in CSSURLEmbedder to (234-235 shown):

                        //create MHTML header entry
                        mhtmlHeader.append("\n--");

(N.B. I haven't tested this code change, my local "fix" just rewrites the output to basically the same effect.)