Stream: helpdesk (published)

Topic: How to test escape characters in strings?


view this post on Zulip Júlio Hoffimann (Aug 25 2025 at 21:23):

I am updating some packages to PrettyTables.jl v3 and can't find an easy way to compare strings with escape characters.

For example:

<th style = "text-align: center; font-weight: bold;">\e[35m\e[1ma\e[39m\e[22m</th>

This is a column named "a" in magenta color. The magenta color is represented with \e characters in HTML.

I am getting a parser error in the tests:

https://github.com/JuliaEarth/GeoTables.jl/pull/146

view this post on Zulip Sundar R (Aug 25 2025 at 23:06):

To other readers: it seems like this was resolved on Discourse .


Last updated: Sep 07 2025 at 04:39 UTC