#3 Escape Sequences

v2.0
closed
nobody
Parser (14)
5
2007-11-07
2006-10-05
Anonymous
No

When trying to send formatted data, you need to use the
characters \.br\ to indicate a line break. However,
nHapi does not allow this and tries to format it in
some funky way.

The correct way would be to double escape this and have
nHapi recognize the double escape sequence and only put
one escape around it.

Example:

use \\.br\\ ---> \.br\

Discussion

  • ChadC

    ChadC - 2007-11-07

    Logged In: YES
    user_id=1522633
    Originator: NO

    I've modified the parser to correctly encode these 'special' escape sequences correctly. The parser will now leave any \., \X, \Z, \C, \M, \H, \N, and \S escape sequences correctly encoded.

    There is no need to double escape the characters, so for a break, just set the text to \.br\ and it will be left alone.

    Fixed in version 2.0.2.

     
  • ChadC

    ChadC - 2007-11-07
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks