src/samples/test10_stringsandurls.json
{
"precomment": [
"# test10 strings and \\\" & \\n escapes",
"\n"
],
"meta": {
"extendedOptions": false,
"extendedArcTypes": false,
"extendedFeatures": false
},
"options": {
"hscale": "1.1"
},
"entities": [
{
"name": "a",
"label": "\\\"Quoted\\\""
},
{
"name": "b",
"label": "line\\nbreak"
},
{
"name": "c",
"label": "No quotes"
},
{
"name": "d",
"id": "\\\"http://github.com\\\"",
"idurl": "http://github.com"
}
],
"arcs": [
[
{
"kind": "=>>",
"from": "a",
"to": "d",
"label": "Just \\\"quotes\\\" and\\na linebreak, linking to mscgen_js on github",
"url": "http://github.com/sverweij/mscgen_js",
"id": "and an \\\"ID\\\" element linking\\nsomwhere else",
"idurl": "http://home.kpn.nl/chromx/mscgen_js"
}
],
[
{
"kind": "=>>",
"from": "c",
"to": "d",
"label": "no quotes"
}
],
[
{
"kind": ">>",
"from": "d",
"to": "a",
"label": ""
}
],
[
{
"kind": "note",
"from": "b",
"to": "c",
"label": "A box with a text and a\\n linebreak"
}
],
[
{
"kind": "|||"
}
],
[
{
"kind": "==",
"from": "a",
"to": "d",
"label": "quote is in the ID",
"id": "\\\"quoted, line\\nbrokenid\\\""
}
],
[
{
"kind": "=>>",
"from": "a",
"to": "b",
"label": "\\nlinebreak at the start"
},
{
"kind": "=>>",
"from": "b",
"to": "c",
"label": "linebreak at the end\\n"
}
],
[
{
"kind": "|||",
"label": "\\\"Explanation:\\\"\\nBlah and blah and bladee blah"
}
]
]
}