Skip to content
Snippets Groups Projects
Commit 7c89fc69 authored by Hague Matthew UXAC009's avatar Hague Matthew UXAC009
Browse files

Don't put indent after last newline

parent d5b1f003
Branches
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ public class TesterOutput { ...@@ -48,7 +48,7 @@ public class TesterOutput {
indented = CODE_INDENT + code; indented = CODE_INDENT + code;
} else if (code.length() > 0) { } else if (code.length() > 0) {
indented indented
= CODE_INDENT + code.replaceAll("\n", "\n" + CODE_INDENT); = CODE_INDENT + code.replaceAll("\n(?!$)", "\n" + CODE_INDENT);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment