XML technologies / XSL-FO / Reference / Antenna House Formatter XSL Extensions / Properties / avoid-widow-words

(Excerpt from "XSL-FO ― Die Referenz" by Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Category Trimming and Hanging

The axf:avoid-widow-words specifies spacing behavior between words or characters so that the last line of the paragraph does not have only one word left (one character for CJK).

Value:

true | false

Initial value:

false

Applies to:

fo:block

Inherited:

yes

Percentages:

N/A

Values have the following meanings.

true

Adjusts the spacing so that the last line of the paragraph does not have only one word left (one character for CJK) when the spacing behavior is available by trimming the space between Japanese characters or Western words.

false

Does nothing.

If the width of columns (length of the line) is short, it is not so effective because there is not enough space to run on. In addition, in case there is no room for a word to be placed at the end of the line, axf:avoid-widow-words has no effect. Please note that there may have no more space to trim by setting axf:punctuation-trim or axf:text-justify-trim. With non-CJK languages, adjusting by sending a character to the next will not be done.

back to top