only allow \n line separators

Fixes #140
This commit is contained in:
marhali 2022-06-30 22:21:02 +02:00
parent 89ce838245
commit a0d76f6ae7

View File

@ -53,7 +53,8 @@ public class PropertiesParserStrategy extends ParserStrategy {
try(StringWriter writer = new StringWriter()) {
output.store(writer, null);
return writer.toString();
// Current implementation only works with \n line separators (IntelliJ Document Formatting)
return writer.toString().replaceAll("\r\n", "\n");
}
}
}