trimTrailingWhitespace(buffer.length - 1, nextTag);
}
}
+ else if (uidPattern) {
+ text = text.replace(uidPattern, function(match, prefix, index) {
+ return ignoredCustomMarkupChunks[+index][0];
+ });
+ }
if (!stackNoCollapseWhitespace.length && nextTag !== 'html' && !(prevTag && nextTag)) {
text = collapseWhitespace(text, options, false, false, true);
}
input = '<link href="<?php echo \'http://foo/\' ?>">';
assert.equal(minify(input), input);
assert.equal(minify(input, { removeAttributeQuotes: true }), input);
+
+ input = '<pre>\nfoo\n<? bar ?>\nbaz\n</pre>';
+ assert.equal(minify(input), input);
+ assert.equal(minify(input, { collapseWhitespace: true }), input);
});
QUnit.test('bootstrap\'s span > button > span', function(assert) {