Fixed the problem that the skipped lines are missing trailing `\n`s.