* Fixed issue [#165](https://github.com/GoalSmashers/clean-css/issues/165) - extra space after trailing parenthesis.
* Fixed issue [#186](https://github.com/GoalSmashers/clean-css/issues/186) - strip unit from 0rem.
+[2.0.5 / 2013-xx-xx (UNRELEASED)](https://github.com/GoalSmashers/clean-css/compare/v2.0.4...v2.0.5)
+==================
+
+* Fixed issue [#199](https://github.com/GoalSmashers/clean-css/issues/199) - keep line breaks with no advanced optimizations.
+
[2.0.4 / 2013-12-19](https://github.com/GoalSmashers/clean-css/compare/v2.0.3...v2.0.4)
==================
// remove space after (rgba|hsla) declaration - see #165
replace(/(rgba|hsla)\(([^\)]+)\) /g, '$1($2)');
- if (!options.noAdvanced) {
+ if (options.noAdvanced) {
+ if (options.keepBreaks)
+ replace(/\}/g, '}' + lineBreak);
+ } else {
replace(function optimizeSelectors() {
data = new SelectorsOptimizer(data, context, {
keepBreaks: options.keepBreaks,
'duplicate selectors with disabled advanced processing': cssContext({
'of a duplicate selector': 'a,a{color:red}'
}, { noAdvanced: true }),
+ 'line breaks with disabled advanced processing': cssContext({
+ 'should be applied': [
+ 'a{color:red}p{display:block}',
+ 'a{color:red}' + lineBreak + 'p{display:block}',
+ ]
+ }, { noAdvanced: true, keepBreaks: true }),
'invalid data tokenization': cssContext({
'extra top-level closing brace': [
'a{color:red}}p{width:auto}',