less / less.ruby

Less Ruby — now at http://github.com/cowboyd/less.rb
Apache License 2.0
956 stars 69 forks source link

Line-based comments end up in output #195

Open dmnd opened 12 years ago

dmnd commented 12 years ago

Line-based comments can appear in output. Example:

@font-face {
  src: url('./fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
    // a line based comment that should be stripped
    url('./fontawesome-webfont.woff') format('woff'),
}

Run that through lessc and you get this:

@font-face {
  src: url('./fontawesome-webfont.eot?#iefix') format('embedded-opentype'), // a line based comment that should be stripped url('./fontawesome-webfont.woff') format('woff');
}

Which is very surprising compared to line based comments in other languages.