linelength

How long strings should get before overflowing to next line, for text output.

type: int, default: 128, minimum: 60

Example, where an 80-character long string ("a " * 40) is broken up onto two lines, when printed as canonical output:

$ echo 'digraph G { linelength=60; N0 [label="a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a "]; }' | dot -Tcanon
digraph G {
        graph [linelength=60];
        node [label="\N"];
        N0      [label="a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a \
a a a a a a a a a a "];
}

The text overflows when the label reaches the given size.

Despite the linelength name, this is the length of the attribute string, not the length of the overall line (which includes the node ID and attribute key).

Valid on:
  • Graphs

Search the Graphviz codebase for "linelength"

Last modified September 27, 2022: Add docs for linelength (39c7e43)