Menu

#15 Line break is broken

open
None
2
2008-12-29
2008-05-03
No

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.

Discussion

  • Eric Martindale

    Eric Martindale - 2008-07-22
    • assigned_to: nobody --> kouketsu
     
  • Martino Dell'Ambrogio

    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!

     
  • Philip Nicolcev

    Philip Nicolcev - 2008-12-26

    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.

     
  • Philip Nicolcev

    Philip Nicolcev - 2008-12-26
    • priority: 5 --> 2
     
  • Philip Nicolcev

    Philip Nicolcev - 2008-12-29
    • assigned_to: kouketsu --> frug