Skip to content

Commit

Permalink
more newline normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Dec 6, 2023
1 parent 6b2fa2a commit e23c637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public class GenerateLuaTypes {

public static void main(String[] args) {
var generator = new GenerateLuaTypes().generatePlanetiler();
System.out.println(generator);
System.out.println(generator.toString().replaceAll("[\r\n]+", NEWLINE));
}

private static String luaClassName(Class<?> clazz) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,6 @@ private static void assertGenerated(String expected, Class<?> clazz, boolean sta
}

private static String fixNewlines(String input) {
return input.replaceAll("[\n\r]", System.lineSeparator());
return input.replaceAll("[\n\r]+", System.lineSeparator());
}
}

0 comments on commit e23c637

Please sign in to comment.