Line break is broken
Fully customizable web chat created using AJAX.
Brought to you by:
frug,
madblueimp
I'm using 0.8.1.2 standalone and by far I've had only one major problem.
Line feeds "\n" are for some reason cut to 'n', therefore the regexp '\n' => '<br>', made by the replaceLineBreaks function, doesn't work.
Example:
---------
test
test
---------
is shown as
---------
testntest
---------
The only modifier I found for '\' is the escapeRegExp function which translates the string into 'test\\ntest', but that doesn't matter... it should print
---------
test\
test
---------
and by the way escapeRegExp is runned only after the replaceLineBreaks function...
Can someone confirm the bug and maybe find a solution or a hint? I'll submit a patch if I'll have the chance to solve the mistery.
Logged In: YES
user_id=150737
Originator: YES
Just a tiny update... problem is still there, no solutions found.
It would be nice to know if anyone out there has the same bug, or if my install has something wrong. I didn't modify any of the posting code.
Thanks!
I haven't been able to replicate this, nor have i heard any other reports of it happening, so if you can give any more information or try and patch it, we could include a patch in the documentation or the latest version.