printSource works with lines of unlimited length