Skip to content

Commit a7f3a71

Browse files
committed
Make line break escaping work on Windows
1 parent b36167b commit a7f3a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/sql/databricks/DatabricksCommentDefinition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public record DatabricksCommentDefinition( String comment ) {
1818
public String toString() {
1919
return "COMMENT '" + comment
2020
.replace( "'", "\\'" )
21-
.replace( "\n", "\\n" )
21+
.replace( System.lineSeparator(), "\\n" )
2222
+ "'";
2323
}
2424
}

0 commit comments

Comments
 (0)