On 22.08.2016, at 13:00 , Allan Odgaard mailinglist@textmate.org wrote: That is the weird thing: My command (running from the Macro): TextMate doesn’t run the indent algorithm on the output but simply indent it to the “current level”.
So #2 is what you want, but you want to replace ^ with \t to increase the indent by one for all but the last line.
ok, but I still got the problem: When I just output without modification: print e_sn(STDIN.read) it just indents the lines further.