99 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1010 * copies of the Software, and to permit persons to whom the Software is
1111 * furnished to do so, subject to the following conditions:
12- *
12+ *
1313 * The above copyright notice and this permission notice shall be included in
1414 * all copies or substantial portions of the Software.
15- *
15+ *
1616 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1717 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1818 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2727package com .inet .lib .less ;
2828
2929import java .util .ArrayList ;
30- import java .util .Collections ;
3130import java .util .List ;
3231
3332/**
@@ -49,7 +48,7 @@ public class LessException extends RuntimeException {
4948
5049 /**
5150 * Constructs a new runtime exception with the specified cause.
52- *
51+ *
5352 * @param cause
5453 * the cause
5554 */
@@ -59,7 +58,7 @@ public class LessException extends RuntimeException {
5958
6059 /**
6160 * Constructs a new runtime exception with the specified detail message and cause.
62- *
61+ *
6362 * @param message
6463 * the detail message.
6564 * @param cause
@@ -106,7 +105,7 @@ public String getOriginalMessage() {
106105 public String getMessage () {
107106 StringBuilder builder = new StringBuilder ( super .getMessage () );
108107 for ( LessFilePosition pos : positions ) {
109- builder .append ( " \n \t on line " ).append ( pos .getLine () ).append ( ", column " ).append ( pos .getColumn () );
108+ builder .append ( System . lineSeparator () ). append ( " on line " ).append ( pos .getLine () ).append ( ", column " ).append ( pos .getColumn () );
110109 if ( pos .getFilename () != null ) {
111110 builder .append ( ", file " ).append ( pos .getFilename () );
112111 }
0 commit comments