From 57cc2322814289fe920b7850e8d2847de22b9a2c Mon Sep 17 00:00:00 2001 From: jeremiah-shaulov Date: Tue, 4 Oct 2022 02:28:27 +0300 Subject: [PATCH] Changes --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 73ef8eb..5bcbe95 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ type IndentAndWrapOptions = wrapWidth?: number; overflowWrap?: boolean; tabWidth?: number; + tabsToSpaces?: boolean; mode?: 'plain' | 'term'; }; ``` @@ -57,6 +58,7 @@ If you already know the common indent (e.g. you called `findCommonIndent()`), yo If `knownCommonIndent` doesn't match the result of `findCommonIndent()`, the behavior is undefined. - If `options.wrapWidth` is set, it inserts `options.endl`, so there're no lines longer than `options.wrapWidth` columns. Columns are calculated with respect to `options.tabWidth` (default 4). If `options.overflowWrap` is set, can break long words, that are wider than `options.overflowWrap`. +- If `options.tabsToSpaces` is set, converts tabs to spaces. ## getTextRect()