Handle long lines better

I can't believe that I survived without this for the QF