ENHANCED: First collect all sources in an array and than join.  Implies less
fragmentation, but more importantly, no unneeded empty lines, making
line numbers correct.