views:

17

answers:

1

Hi everyone,

I am trying to visualize a rather complex structure in the dot language. Because the record is big, I would like to write the code in mulitple lines. So instead of:

A11[label="A.11 Access Control|{A.11.1 Business requirements for access control|A.11.2 User access management}|{A.11.3 User responsibilities|A.11.4 Network access control}|{A.11.5 Operating System access control|A.11.6 Application & information access control}|A.11.7 Mobile computing & teleworking"];

I would like to enter it somewhat like this

A11[label="A.11 Access Control|
           {A.11.1 Business requirements for access control|A.11.2 User access management}|
           {A.11.3 User responsibilities|A.11.4 Network access control}|
           {A.11.5 Operating System access control|A.11.6 Application & information access control}|
           A.11.7 Mobile computing & teleworking"];

Unfortunately the parser for dot complains about a "string running past line end" or something alike. Does anyone know how to denote a linebreak in the code? I tried a \ at the end of the line, but it didn't seem to work.

thanks in advance

A: 

I am guessing you want something like this:

graph G{
A11[label="A.11 Access Control|\n\
{A.11.1 Business requirements for access control|A.11.2 User access management}|\n\
{A.11.3 User responsibilities|A.11.4 Network access control}|\n\
{A.11.5 Operating System access control|A.11.6 Application & information access control}|\n\
A.11.7 Mobile computing & teleworking"];
}

You can also do like

label = "line1\n" +
        "line2\n" + ...
livibetter
Hi livibetter. No that is not what I meant. I would like to use multiple lines in the source code only. Just to make editing easier. So your solution without the \n but with just the \ does the trick
er4z0r
I guess I assumed your want to the result to have multi-line too quick because I saw a really long line in result. Anyway, I am glad that I still can help with multi-line.
livibetter