nojustify
是否將多行文字與前一行文字對齊(而不是與容器的邊緣對齊)。
類型:bool,預設值:false
預設情況下,多行標籤的對齊方式是在合理的範圍內進行。因此,在多邊形節點的標籤中,左對齊的行將與節點的左側對齊(依指定的margin
偏移)。在記錄節點中,左對齊的行將與封閉欄位的左側對齊。如果nojustify=true
,則多行標籤將在其自身的上下文中對齊。
例如,如果設定了nojustify
,第一行標籤很長,第二行較短且左對齊,則第二行將與第一行中最左邊的字元對齊,無論節點有多大。
請參閱此範例,其中包含 \l
(左對齊) 跳脫字串
Nojustify 會使文字與前一行文字對齊,而不是與方塊的左側對齊
digraph G {
node [width=3 shape=box]
a [nojustify=false label="The first line is longer\nnojustify=false\l"]
b [nojustify=true label="The first line is longer\nnojustify=true\l"]
a -> b
}
Nojustify 會使文字與前一行文字對齊,而不是與記錄欄對齊
digraph G{
c [nojustify=false shape=record label="{Records Example - Long Line\n | Title - Shorter Line\nnojustify=false\l}"]
d [nojustify=true shape=record label="{Records Example - Long Line\n | Title - Shorter Line\nnojustify=true\l}"]
c -> d
}
- 圖形
- 叢集
- 節點
- 邊緣