Permalink
Browse files

fix css media query

  • Loading branch information...
1 parent 94830d9 commit 1305dd9790fee40b86455446d9e52af851e331a8 @michalliu committed Jun 18, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 plugin/sourcebeautify/beautifiers/beautify-css.js
@@ -190,6 +190,9 @@ function css_beautify(source_text, options) {
var sweetCode = output.join('').replace(/[\n ]+$/, '');
+ // fix css media query
+ // detail https://github.com/michalliu/sourcebeautify.vim/issues/12
+ sweetCode=sweetCode.replace(/and\(/ig,"and (");
return sweetCode;
}

0 comments on commit 1305dd9

Please sign in to comment.