Commit 4e3c260b authored by jan.koester's avatar jan.koester
Browse files

test

parent 2a36adcd
Loading
Loading
Loading
Loading
+5 −3
Changes for editor/src/htmlimport.cpp: 5 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -547,13 +547,15 @@ std::string blogi::htmlimport::rewriteCssUrls(
            // (@import url(foo.css);) is handled by the branch above instead,
            // on a later pass through this same loop.
            if (i < n && (css[i] == '"' || css[i] == '\'')) {
                char q = css[i];
                char q = css[i]; // whichever quote closes THIS string in the input
                size_t strEnd = css.find(q, i + 1);
                if (strEnd != std::string::npos) {
                    std::string ref = css.substr(i + 1, strEnd - (i + 1));
                    out += q;
                    // Always re-emit with single quotes -- see the identical
                    // rationale on the url(...) branch above.
                    out += '\'';
                    out += fn(ref);
                    out += q;
                    out += '\'';
                    i = strEnd + 1;
                    continue;
                }