Account for windows line endings when constructing lines.

Fixes the bad formatting for files with windows line endings (see, e.g., http://dxr.mozilla.org/mozilla-central/source/gfx/gl/GLTextureImage.cpp).