Skip to content

Commit f57a964

Browse files
committed
TH_Tokenized: makeStringFromData: pass options to reindentCodeString.
1 parent 0424550 commit f57a964

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

TIVarsLib.wasm

843 Bytes
Binary file not shown.

src/TypeHandlers/TH_Tokenized.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,12 @@ namespace tivars
170170

171171
if (has_option(options, "reindent") && options.at("reindent") == 1)
172172
{
173-
str = reindentCodeString(str);
173+
options_t indent_options{};
174+
if (has_option(options, "indent_char"))
175+
indent_options["indent_char"] = options.at("indent_char");
176+
if (has_option(options, "indent_n"))
177+
indent_options["indent_n"] = options.at("indent_n");
178+
str = reindentCodeString(str, indent_options);
174179
}
175180

176181
return str;

0 commit comments

Comments
 (0)