SC5 / sc5-styleguide

Styleguide generator is a handy little tool that helps you generate good looking styleguides from stylesheets using KSS notation
http://styleguide.sc5.io/
MIT License
1.26k stars 167 forks source link

sg-wrapper is not parsed correctly (on Windows) #452

Open i-have-no-name opened 9 years ago

i-have-no-name commented 9 years ago

I have file main.less , but sg-wrapper don't parse.

// Side nav item
//
// markup:
// <li><a class="">Item</a></li>
//
// sg-wrapper:
// <nav class="sg side-nav" style="background: green">
//   <ul>
//    <sg-wrapper-content/>
//   </ul>
// </nav>
// sg-wrapper:
// <nav class="sg side-nav" style="background: green">
//   <ul>
//    <sg-wrapper-content/>
//   </ul>
// </nav>
//
// Styleguide 1
i-have-no-name commented 9 years ago

I found trouble. Your should add support for CRLF Windows new line symbol ;)

varya commented 9 years ago

Thanks for reporting! This fix will appear in one of the next patches.

adrianschmidt commented 9 years ago

I just wanted to add that I have this problem too, although I can not verify whether it is due to crlf line-endings or not. I tried saving the file using unix line-endings, but it made no difference. However, I am using gulp to bundle my less-files, so the line-endings might well have been rewritten before being processed by SC5 Styleguide.

I am using 0.3.6 on Window 8.1 Enterprise.

kr3l commented 9 years ago

I have the same issue (0.3.6 on Win 7). After converting the .less file to unix line-endings the wrapper did work in my case.