Skip to content

Commit

Permalink
Remove consolidation of newlines from JCPP preprocessing
Browse files Browse the repository at this point in the history
This causes line numbers to be shifted even more and coderbot indicates 
it should be removed.
  • Loading branch information
Justsnoopy30 committed Oct 29, 2021
1 parent 0a92821 commit 9d3546e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ public static String preprocessSource(String source) {

source = builder.toString();

// strip leading whitespace before newline, makes next change more reliable
source = source.replaceAll("[ \t]*[\r\n]", "\n");
// consolidate newlines
source = source.replaceAll("\n{2,}", "\n\n");

return source;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@ public static String glslPreprocessSource(String source) {

source = builder.toString();

// strip leading whitespace before newline, makes next change more reliable
source = source.replaceAll("[ \t]*[\r\n]", "\n");
// consolidate newlines
source = source.replaceAll("\n{2,}", "\n\n");

return source;
}
}

0 comments on commit 9d3546e

Please sign in to comment.