On 22.08.2016, at 13:36 , Allan Odgaard mailinglist@textmate.org wrote:
On 22 Aug 2016, at 13:29, Fabian Zeindl wrote:
ok, but I still got the problem: When I just output without modification: print e_sn(STDIN.read) it just indents the lines further.
Yes, that is expected because your first line has indent, so that indent is added to every line of the command’s output.
Ok, so if I want to output a snippet to get correct indentation, but in some cases, not change anything, I need to change output type to discard.
How can I do that in ruby?
Again, thanks for your time. fabian