fixes edge case for newline in the middle of mfg#