Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit b1527c6

Browse files
fixes #123 - wrong search string for trailing spaces on Windows, missing replacement
As a result replacement with "undefined" occurred on Windows platforms. Keeping A21 even if it is redundant.
1 parent 06d6496 commit b1527c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

settings/sql_developer/trivadis_custom_format_phase2.arbori

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ a2_remove_trailing_spaces:
9797
var key = it.next();
9898
var value = newlinePositions.get(key);
9999
// handle Linux and Windows line separators regardless of the OS
100-
var newValue = replaceAll(replaceAll(value, "[ ]+\\n", "\n"), ("[ ]+\\r\\n", "\r\n"));
100+
var newValue = replaceAll(replaceAll(value, "[ ]+\\n", "\n"), "[ ]+\\r\\n", "\r\n");
101101
if (!value.equals(newValue)) {
102102
struct.putNewline(key, newValue);
103103
logger.fine(struct.getClass(), "a2_remove_trailing_spaces: at " + key + ".");

0 commit comments

Comments
 (0)