diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..093778151 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,2 @@ +[*.java] +indent_style = tab diff --git a/org.jacoco.report/src/org/jacoco/report/internal/html/page/SourceFilePage.java b/org.jacoco.report/src/org/jacoco/report/internal/html/page/SourceFilePage.java index 6635380b8..09b6d482d 100644 --- a/org.jacoco.report/src/org/jacoco/report/internal/html/page/SourceFilePage.java +++ b/org.jacoco.report/src/org/jacoco/report/internal/html/page/SourceFilePage.java @@ -61,7 +61,7 @@ public SourceFilePage(final ISourceNode sourceFileNode, @Override protected void content(final HTMLElement body) throws IOException { final SourceHighlighter highlighter = new SourceHighlighter(context.getLocale()); - highlighter.render(body, getNode(), sourceReader); + highlighter.render(body, getNode(), sourceReader); sourceReader.close(); } @@ -76,9 +76,9 @@ protected void head(final HTMLElement head) throws IOException { @Override protected String getOnload() { - String setTabWidth = format("window['PR_TAB_WIDTH']=%d", tabWidth); - String invokePrettyPrint = "prettyPrint()"; - return setTabWidth + ";" + invokePrettyPrint; + String setTabWidth = format("window['PR_TAB_WIDTH']=%d", tabWidth); + String invokePrettyPrint = "prettyPrint()"; + return setTabWidth + ";" + invokePrettyPrint; } @Override