如何在边缘标签中转义`>`? [英] How shall escape `>` in an edge label?
本文介绍了如何在边缘标签中转义`>`?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的点文件中
stdin_in -> file_out [label=<<font color="blue">tee >/dev/null</font>>];
tee >/dev/null
应该是标签的文本,但是它包含>
这是一个特殊字符,因此dot
对此有所抱怨.我该怎么办呢?谢谢.
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.
推荐答案
将文本放在引号中;将行更改为
Put the text in quotation marks; changing the line to
stdin_in -> file_out[ label = "tee > /dev/null" fontcolor = "blue" ];
产生期望的结果:
这篇关于如何在边缘标签中转义`>`?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文