If a .less file is written using mac format line endings (CR only), the BundleTransformer can break when there is a line comment within some braces.
Simple test case (also attached as a file)
```
a {
// foo
}
```
You must ensure this file has mac format line endings (simple Windows way to do this using Notepad++ is to go to Edit > EOL Conversion > Mac format) Once you've done this, BundleTransformer cannot compile this file - it fails with the following error:
```
/*
During the output text content of translated asset an error has occurred.
See more details:
During translation of LESS-code, readed from the file '/Content/main.less', to CSS-code syntax error has occurred.
See more details:
Error type: Parse
Message: missing closing `}`
File: /Content/main.less
Line number: 1
Column number: 15
Source error:
Line 1: a {
// foo
}
----------------------^
```
This is a BundleTransformer problem, as lessc compiles the same file without a problem. Tested using BundleTransformer installed today from nuget (Core and Less = 1.7.27).
Simple test case (also attached as a file)
```
a {
// foo
}
```
You must ensure this file has mac format line endings (simple Windows way to do this using Notepad++ is to go to Edit > EOL Conversion > Mac format) Once you've done this, BundleTransformer cannot compile this file - it fails with the following error:
```
/*
During the output text content of translated asset an error has occurred.
See more details:
During translation of LESS-code, readed from the file '/Content/main.less', to CSS-code syntax error has occurred.
See more details:
Error type: Parse
Message: missing closing `}`
File: /Content/main.less
Line number: 1
Column number: 15
Source error:
Line 1: a {
// foo
}
----------------------^
```
This is a BundleTransformer problem, as lessc compiles the same file without a problem. Tested using BundleTransformer installed today from nuget (Core and Less = 1.7.27).