Add indentation framework

This commit is contained in:
Mayuran Visakan 2023-11-28 01:07:38 +00:00
parent 24acdc773d
commit d6844c85d5

View file

@ -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")