The <fill/> command

Generates a space fill or a fill consisting of one or more visible characters.

Where allowed

Any mapping other than $document or $headfoot

Attributes

string

Specifies the fill character. If not specified, a space (U+0020) is assumed, and a space fill will be generated. The value assigned to this attribute must be a single character.

min-reps

Specifies the minimum number of characters in the fill. If not specified, then the default is 0

A fill consists of a set of characters wide enough to fill any remaining space on a line. In addition a small amount of space is generated before and after the fill to ensure that fill characters on different lines align properly with each other.

While the min-reps attribute defaults to 0, it is usual to set it to some small value (such as 3) to ensure that at least some filler appears.

Examples

  • <fill/> generates a space fill.

  • Amount payable:<fill string="*"/>$169.95 gives the following:

[Note] Note

If you need to insert space between a fill and the following text, use a non-breaking fixed space (such as &emsp;). Ordinary spaces can interfere with the spacing/breaking properties of the fill.