handle additional newlines, fixes #12