GraphViz supports different types of label. The type is determined by
the delimiters used to quote the label's value. Double-quotes denote
a literal string. Pairs of angle brackets ("<>") denote a "HTML-like"
string, which permits the use of (some) HTML mark-up in the graph.
Extend the Style record type to include a quoting field, to signal
whether or not attribute values should be double-quoted. A user wishing
to use another quote style must define their style's quoting attribute
as NoQuote and then ensure their attribute values contain embedded
quote characters of their choice.
Adjust defaultStyle and the attributes function accordingly and add
a test.
Fixes #272.
Here's an example of the above in use. Note that I have to take responsibility for wrapping all values, and I vary what delimiter I use. Here's what the result looks like:
GraphViz supports different types of label. The type is determined by the delimiters used to quote the label's value. Double-quotes denote a literal string. Pairs of angle brackets ("<>") denote a "HTML-like" string, which permits the use of (some) HTML mark-up in the graph.
Extend the
Style
record type to include aquoting
field, to signal whether or not attribute values should be double-quoted. A user wishing to use another quote style must define their style's quoting attribute asNoQuote
and then ensure their attribute values contain embedded quote characters of their choice.Adjust
defaultStyle
and theattributes
function accordingly and add a test.Fixes #272.
Here's an example of the above in use. Note that I have to take responsibility for wrapping all values, and I vary what delimiter I use. Here's what the result looks like: