@frostschutz: Oh, yeah, the leading linefeed one was actually triggering an underflow and then a nasty loop.
I think I have a fix for both, just need to do some more testing tomorrow to make sure I'm not making everything else worse ;p.
Thanks for the report

.