IDEA-115374 "Print file" truncates the code on Mac

following review #429