Codegen plugin: double indenting

Hello everyone!

I’ve been working on a Codegen plugin for my team. It takes a group of elements and exports them as a React component.

Everything seems to be working perfectly, including its display within the FIGMA interface. However, when I copy the generated code and paste it elsewhere, I notice it has double the intended indentation. Instead of the expected two-space indentation, it’s coming out with four.

Is there a setting or solution to address this?

Thanks in advance!

Marlus