Well, I feel stupid. There isn’t a problem after all. The issue was with the developer IDE. When I actually copied the contents of my output string to wordpad it appears correctly. The developer IDE will wrap the contents and in this case it was wrapping the filler spaces at the end of each record make it appear as it was two lines.