viz-js
viz-js copied to clipboard
RuntimeError with long label starting with newline
Rendering this graph throws an error, while rendering the same graph with Graphviz 9.0.0 works:
digraph {
a [label="
01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678"]
}
But these graphs don't:
digraph {
a [label="
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567"]
}
digraph {
a [label="01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234"]
}
Error message:
RuntimeError: Out of bounds call_indirect (evaluating 'G.apply(null,M)')
@mdaines have u noticed that as the length of label increases the width of eclipse increases ..after a certain point the text gets smaller and then when there is no space to fit the characters it throws this exception..