How shall escape `>` in an edge label?

妖精的绣舞 提交于 2019-12-11 06:37:36

问题


In my dot file

stdin_in -> file_out [label=<<font color="blue">tee >/dev/null</font>>];

tee >/dev/null is supposed to be the text of the label, but it contains > which is a special character, so dot complains about it. What shall I do instead? Thanks.


回答1:


Put the text in quotation marks; changing the line to

stdin_in -> file_out[ label = "tee > /dev/null" fontcolor = "blue" ];

produces the desired result:



来源:https://stackoverflow.com/questions/53421641/how-shall-escape-in-an-edge-label

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!