Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quoted string and its quirks #30

Open
awalterschulze opened this issue May 28, 2017 · 3 comments
Open

quoted string and its quirks #30

awalterschulze opened this issue May 28, 2017 · 3 comments

Comments

@awalterschulze
Copy link
Owner

From the spec http:https://www.graphviz.org/content/dot-language

As another aid for readability, dot allows double-quoted strings to span
multiple physical lines using the standard C convention of a backslash
immediately preceding a newline character.
In addition, double-quoted strings can be concatenated using a '+' operator.
@fenollp
Copy link
Contributor

fenollp commented Nov 27, 2020

Note: < & > are also valid

digraph "0000/addition.slx" {
	"Block#2":out_1->"Block#1":in_1;
	"Block#3":out_1->"Block#1":in_2;
	"Block#1":out_1->"Block#4":in_1;
	subgraph "System#0" {
	"Block#1" [ label=<
    	    <table border="0" cellborder="1" cellspacing="0">
    	        <tr><td port="~" colspan="2">Add</td></tr>
    	        <tr><td port="in_1">in_1</td><td port="out_1">out_1</td></tr>
    	        <tr><td port="in_2">in_2</td><td port="out_2">out_2</td></tr>
    	    </table>
	    >, margin=0, shape=none ];
	"Block#2" [ label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="~" colspan="2">Constant</td></tr><tr><td port="in_1">in_1</td><td port="out_1">out_1</td></tr></table>>, margin=0, shape=none ];
	"Block#3" [ label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="~" colspan="2">Constant1</td></tr><tr><td port="in_1">in_1</td><td port="out_1">out_1</td></tr></table>>, margin=0, shape=none ];
	"Block#4" [ label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="~" colspan="2">Display</td></tr><tr><td port="in_1">in_1</td><td port="out_1">out_1</td></tr></table>>, margin=0, shape=none ];

}
;
	node [ shape=plaintext ];

}

Try this out in http:https://viz-js.com/

@awalterschulze
Copy link
Owner Author

This looks like a separate issue regarding html parsing, not quoted strings or did I miss something?

@fenollp
Copy link
Contributor

fenollp commented Nov 27, 2020

Oh I'm not trying to report an issue, I'm just saying one can apparently use <> for multiline labels.

But now that I think about it, it may only concern HTML labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants