Closed notnoop closed 14 years ago
Ach, I was hoping the various platform definitions were abstracting away newlines. I'll check this out over the weekend. Thanks for letting me know.
Unfortunately, that didn't quite work as expected. I used knockoff as part of a Lift application. When entering text using Firefox and/or Chrome (don't remember which now) on Mac OS X, I got \r\n newlines causing the problem to show up.
I think the major issues should be fixed with version 0.7.3-15.
The fix involved handling of empty lines, mostly. What's interesting is that saving some of the files locally in "DOS mode" worked fine, so, I'm not really that confident I got every possible edge case.
Knockoff doesn't handle newlines feeds well, as it only expects the
\n
delimiter and will fail if it sees a\n
line ending (or a\r
).Here is script to reveal the problem: