diff --git a/packages/hoppscotch-app/helpers/new-codegen/index.ts b/packages/hoppscotch-app/helpers/new-codegen/index.ts index 37021088..c9630c4a 100644 --- a/packages/hoppscotch-app/helpers/new-codegen/index.ts +++ b/packages/hoppscotch-app/helpers/new-codegen/index.ts @@ -204,7 +204,9 @@ export const generateCode = ( // Returns a string if valid, false if not new HTTPSnippet({ ...buildHarRequest(req), - }).convert(codegenInfo.lang, codegenInfo.mode) + }).convert(codegenInfo.lang, codegenInfo.mode, { + indent: " ", + }) ), // Only allow string output to pass through, else none