Skip to content

Commit

Permalink
Render tabs as four spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
kneasle committed Jul 20, 2024
1 parent 9098759 commit aa68726
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main-page/ts/matrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ function makeMatrix(elem: HTMLElement, distance: number) {
const parts = /https:\/\/raw.githubusercontent.com\/kneasle\/(.+)\/[0-9a-f]+\/(.*)/.exec(url);
const repoSlug = parts![1];
const file = parts![2];
const retabbedCode = code.replaceAll("\t", " ");
const textToDisplay =
`[[Writing file: ${file} from github.com/kneasle/${repoSlug}]]\n\n${code}`;
`[[Writing file: ${file} from github.com/kneasle/${repoSlug}]]\n\n${retabbedCode}`;

// Create the matrix
const speed = 30 + 20 * Math.random();
Expand Down
2 changes: 1 addition & 1 deletion main-page/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

/* Language and Environment */
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"lib": ["es2019", "dom"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
"lib": ["es2021", "dom"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
// "jsx": "preserve", /* Specify what JSX code is generated. */
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
Expand Down

0 comments on commit aa68726

Please sign in to comment.