Skip to content

Commit

Permalink
Fix spaces to tabs and enforce it
Browse files Browse the repository at this point in the history
  • Loading branch information
huangsam committed Apr 7, 2024
1 parent 01ed9f5 commit 4d29482
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
@@ -0,0 +1,2 @@
[*.java]
indent_style = tab
Expand Up @@ -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();
}

Expand All @@ -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
Expand Down

0 comments on commit 4d29482

Please sign in to comment.