Skip to content

Commit

Permalink
Add indentation framework
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurankv committed Nov 28, 2023
1 parent 24acdc7 commit d6844c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ReadingView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ function insertLineWrapper(codeblockCodeElement: HTMLElement, codeblockParameter
lineWrapper.appendChild(createDiv({cls: "code-styler-line-text", text: sanitizeHTMLToDom(line !== "" ? line : "<br>")}));
}
function countTabs(text: string): number {
//TODO (@mayurankv) Make work with space indentation too
let count = 0;
let index = 0;
while (text.charAt(index++) === "\t")
Expand Down

0 comments on commit d6844c8

Please sign in to comment.