MODiX
MODiX copied to clipboard
!eval removes indentation when displaying code in the result embed
Issue is present regardless of whether the code in the command was surrounded by a code block when the command was executed.

There are moments that you copy paste code that already intendent by the IDE. which adds multiple levels of indentation and making it look bad on a paste. Would make sense to indent it after submission on the bot using a linter.
Also not every time is losing the indentation:
Without a return

With a return

Found the condition that make it indent properly:
If there are multiple levels of indentations, the indentation is conserved.
Can this be closed now? See: #984