mirror of
https://github.com/mayurankv/Obsidian-Code-Styler.git
synced 2026-07-22 08:10:29 +00:00
Add indentation framework
This commit is contained in:
parent
24acdc773d
commit
d6844c85d5
1 changed files with 1 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue