dot2tex icon indicating copy to clipboard operation
dot2tex copied to clipboard

Escaping rules in dot strings are not respected

Open akimd opened this issue 11 years ago • 1 comments

Hi,

The syntax of dot clearly makes \ special in strings, and therefore to mean a backslash in a string, one must escape it. However, dot2tex does not strip the double-backslashes, and actually processes the string as if it were a raw string (my issue is with d2tdocpreamble). So, for instance, we cannot embed a double-quote as ", since it is then really output as ", without the backslash stripped (included in labels).

Thanks!

akimd avatar Sep 23 '14 18:09 akimd

I will look into this. The d2tprocpreamble attribute does not handle newlines properly either. See issue #23

kjellmf avatar Sep 27 '14 07:09 kjellmf