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.