no-break (テキスト形式)
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.TEXT-FORMATS.
基準: text
キーワードの既定設定: text-breakable?=false

テキストの内容が複数行に改行されるのを回避します。

説明

通常、テキストは使用可能な領域に収まるように改行されます。テキストを適切に改行できる箇所は、オプションの改行位置と呼ばれます。{no-break} は、TextFlowBox に内容のオプションの改行位置を無視するように指示します。

{no-break} フォームは、強制的な改行文字 ({br}) には反映されません。{no-break} 内で強制的に改行しない場合は、その中で {br} を使用しないでください。

構文

            {no-break
                [option1=value1,
                 option*=value*,]
                ...}
            
option: 任意のサポートされている文字オプション。
value: 文字オプションに対する有効値です。
...: 内容。テキストの内容のみ書式設定されます。

文字オプション

no-break および他の文字書式に直接影響する文字オプションは以下のとおりです。

次の例に示されている行は、{br} が発生する箇所以外では次の行に送られません。
{TextFlowBox
    background="pink",
    width=1in,
    font-size=12pt,
    {paragraph
        {no-break color="navy",
            Let me not, to the marriage of true minds
            {br}Admit impediments. Love is not love
            {br}Which alters when it alteration finds,
            {br}Or bends with the remover to remove:
            {br}O no! it is an ever-fixed mark
            {br}That looks on tempests and is never shaken;
            {br}It is the star to every wandering bark,
            {br}Whose worth's unknown, although his height be taken.
            {br}Love's not Time's fool, though rosy lips and cheeks
            {br}Within his bending sickle's compass come:
            {br}Love alters not with his brief hours and weeks,
            {br}But bears it out even to the edge of doom.
            {br}If this be error and upon me proved,
            {br}I never writ, nor no man ever loved.}}}