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

Remove indent when line is empty

parent deab65c0
Branches
No related tags found
No related merge requests found
...@@ -43,11 +43,12 @@ public class TesterOutput { ...@@ -43,11 +43,12 @@ public class TesterOutput {
if (!isHTML) { if (!isHTML) {
// will work for \r\n and \n // will work for \r\n and \n
indented = CODE_INDENT; indented = "";
if (code == null) { if (code == null) {
indented += code; indented = CODE_INDENT + code;
} else { } else if (code.length() > 0) {
indented += code.replaceAll("\n", "\n" + CODE_INDENT); indented
= 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