Pipe characters don't show up correctly in the web client

49 views
Skip to first unread message

Brian Durney

unread,
May 17, 2016, 1:14:09 AM5/17/16
to Evennia
Hello,
I made an ASCII map that has a lot of | (pipe) characters in it.  It looks fine in a vanilla text editor, but when I display it in the web client some of the pipe characters don't show up.  I found a reference to escaping pipe characters for ANSI color codes, but the information I found out those color codes talked about braces, not pipes.  Is there something special I need to do to get pipe characters to show up correctly?  Is there a list of special characters that need to be escaped?
Thanks,
Brian Durney

Griatch Art

unread,
May 17, 2016, 4:06:02 AM5/17/16
to Evennia
The pipe character is being phased in as being the ANSI color code symbol, replacing {c -style markup. This is due to how {} is used as formatting symbols in Python. Currently both |r and {r works for making text red though. See more info in the deprecation warning here.

To use the pipe in a table, either put it alone with at least one space to the right of it (this is the common way to make table edges) or escape it as two | after one another (||). If you are not interested in colors you could also send the map with stripped markers.
.
Griatch
Reply all
Reply to author
Forward
0 new messages