Commit a7ea500
Quote handles in GraphView Graphviz output
The Graph View wrote each Gramps handle into the Graphviz/DOT graph as an
unquoted node id (add_node, add_link and the subgraph cluster name).
Handles may be any string up to 50 characters, and Gramps-Web creates
UUIDv4 handles containing hyphens. Graphviz splits an unquoted id at the
hyphen, so the node, edge and cluster names were mangled and the view
rendered blank.
Quote the handle at the three sites where it is emitted as a DOT id, so a
hyphenated handle is treated as a single id. A quoted name beginning with
"cluster" is still treated as a cluster by Graphviz, so grouping is
unchanged. The core Graphviz reports already quote their node ids.
Fixes #13832.1 parent 8b9a30c commit a7ea500
3 files changed
Lines changed: 115 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3321 | 3321 | | |
3322 | 3322 | | |
3323 | 3323 | | |
3324 | | - | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
| 3327 | + | |
3325 | 3328 | | |
3326 | | - | |
| 3329 | + | |
3327 | 3330 | | |
3328 | 3331 | | |
3329 | 3332 | | |
| |||
3390 | 3393 | | |
3391 | 3394 | | |
3392 | 3395 | | |
3393 | | - | |
| 3396 | + | |
| 3397 | + | |
| 3398 | + | |
| 3399 | + | |
3394 | 3400 | | |
3395 | 3401 | | |
3396 | 3402 | | |
| |||
3407 | 3413 | | |
3408 | 3414 | | |
3409 | 3415 | | |
3410 | | - | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + | |
3411 | 3421 | | |
3412 | 3422 | | |
3413 | 3423 | | |
| |||
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
0 commit comments