MODiX icon indicating copy to clipboard operation
MODiX copied to clipboard

!eval removes indentation when displaying code in the result embed

Open Scott-Caldwell opened this issue 4 years ago • 2 comments

Issue is present regardless of whether the code in the command was surrounded by a code block when the command was executed.

image

Scott-Caldwell avatar Feb 28 '21 00:02 Scott-Caldwell

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 image

With a return image

ProIcons avatar Feb 28 '21 14:02 ProIcons

Found the condition that make it indent properly:
image image If there are multiple levels of indentations, the indentation is conserved.

Kuinox avatar Feb 28 '21 15:02 Kuinox

Can this be closed now? See: #984

calledude avatar Jul 06 '23 16:07 calledude