Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can specify the wrap-option attribute in your <code>fo:block</code> like so:</p> <pre><code>&lt;fo:block wrap-option="wrap"&gt; ... stuff &lt;/fo:block&gt; </code></pre> <p>Here's the XSL-FO specification for this attribute:</p> <blockquote> <p><strong>XSL Definition:</strong></p> <p><em>Value</em>: no-wrap | wrap | inherit</p> <p><em>Initial</em>: wrap</p> <p><em>Applies to</em>: fo:block, fo:inline, fo:page-number, fo:page-number-citation</p> <p><em>Inherited</em>: yes</p> <p><em>Percentages</em>: N/A</p> <p><em>Media</em>: visual</p> <p><strong>Values have the following meanings:</strong></p> <p><em>no-wrap</em></p> <p>No line-wrapping will be performed.</p> <p>In the case when lines are longer than the available width of the content-rectangle, the overflow will be treated in accordance with the "overflow" property specified on the reference-area.</p> <p><em>wrap</em> </p> <p>Line-breaking will occur if the line overflows the available block width. No special markers or other treatment will occur.</p> <p>Specifies how line-wrapping (line-breaking) of the content of the formatting object is to be handled.</p> <p>Implementations must support the "no-wrap" value, as defined in this Recommendation, when the value of "linefeed-treatment" is "preserve".</p> </blockquote> <p>You can also define the <code>wrap-option</code> attribute in an <code>fo:table-cell</code></p> <pre><code>&lt;fo:table-cell wrap-option="wrap"&gt; ... &lt;/fo:table-cell&gt; </code></pre> <p>and the <code>fo:block</code>s within will inherit the property.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload