text-preserve-whitespace? (非ローカル オプションの定義)
public text-preserve-whitespace?:bool =false
パッケージ: CURL.GUI.BASE

テキスト内の空白文字と改行を保持するか、または削除するかを指定します。

説明

true または false に設定します。

以下の例は、2 つのテキスト部分を示しています。最初のテキストは、改行が許される個所、つまり空白の個所で改行しています。個々の単語内では改行していないことに注意してください。
{spaced-vbox
    background="wheat",
    {text The text fragment uses the default setting for the
        text-preserve-whitespace? option. Here
        begins a gap                    and the gap ends.},
    {text text-preserve-whitespace?=true,
        The text fragment sets the text-preserve-whitespace? option to true. Here
        begins a gap                    and the gap ends.}
}

注意事項

no-break テキスト フォーマット を使用していたり、特定の コントロール のラベル内にある場合のように、text-breakable? オプションが false の場合、 改行文字は空白文字として扱われ、改行として扱われません。

参照:

段落書式: pre