I have problem with , here is my code, and the screenshot is attached below. How to remove the indents?
%pre.code :escaped
You need to use the #preserve helper to convert the newlines in the pre to newline entities, like so:
#preserve
pre
%pre.code = preserve do :escaped
In the future, you'll be able to nest filters, so you can do :preserve:escaped.
:preserve:escaped