From 5220adc0004d27e71d74986f945e258da70880f0 Mon Sep 17 00:00:00 2001 From: lifeparticle Date: Wed, 4 Oct 2023 00:10:04 +1100 Subject: [PATCH] refactor --- ui/src/pages/Converter/CodeFormatter/index.tsx | 1 + ui/src/pages/Converter/CodeFormatter/utils/constants.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ui/src/pages/Converter/CodeFormatter/index.tsx b/ui/src/pages/Converter/CodeFormatter/index.tsx index 796ea22b..d4b37549 100644 --- a/ui/src/pages/Converter/CodeFormatter/index.tsx +++ b/ui/src/pages/Converter/CodeFormatter/index.tsx @@ -28,6 +28,7 @@ const CodeFormatter: React.FC = () => { try { const options = { indent_size: Number(indentationLevel), + indent_with_tabs: true, }; const selectedBeautifyFunction = diff --git a/ui/src/pages/Converter/CodeFormatter/utils/constants.ts b/ui/src/pages/Converter/CodeFormatter/utils/constants.ts index 491efb03..c2286c43 100644 --- a/ui/src/pages/Converter/CodeFormatter/utils/constants.ts +++ b/ui/src/pages/Converter/CodeFormatter/utils/constants.ts @@ -13,6 +13,10 @@ const INDENTATION_LEVEL = [ value: "4", label: "4 space per indent level", }, + { + value: "1", + label: "Tab delimited", + }, ]; const INPUT_TYPE = [