Normally, lines of text that have no formatting tags are wrapped by IPF; that is, irregular lines in the source file become a continuous string, and one word follows another on a line until the line width of the current window is filled, a formatting tag is encountered, or the end of the window is reached.

The :lines. tag and its corresponding end tag, :elines., enable you to control where lines break.

The following example shows how the :lines. tag prevents wrapping of text.

Input Example

Here is how IPF normally wraps lines to fit the window width&colon.

:p.&odq.Normally, lines of text that have no formatting tags are wrapped by IPF; that is, irregular lines in the source file become a continuous string, and one word follows another on a line until the line width of the current window is filled, a formatting tag is encountered, or the end of the window is reached.&cdq.

In the following example, IPF will not wrap the lines, because we used the :hp2.&colon.lines&per.:ehp2. tag to prevent the lines from being formatted.

:lines.
&odq.Normally, lines of text that have no
formatting tags are wrapped by IPF;
that is, irregular lines in the source
file become a continuous string, and
one word follows another on a line
until the line width of the current
window is filled, a formatting tag
is encountered, or the end of the
window is reached.&cdq.
:elines.

The quotation appears in two forms.

Plain Lines Example

Here is how IPF normally wraps lines to fit the window width:

"Normally, lines of text that have no formatting tags are wrapped by IPF; that is, irregular lines in the source file become a continuous string, and one word follows another on a line until the line width of the current window is filled, a formatting tag is encountered, or the end of the window is reached."

In the following example, IPF will not wrap the lines, because we used the :lines. tag to prevent the lines from being formatted. "Normally, lines of text that have no
formatting tags are wrapped by IPF;
that is, irregular lines in the source
file become a continuous string, and
one word follows another on a line
until the line width of the current
window is filled, a formatting tag
is encountered, or the end of the
window is reached."

In the first case, IPF wraps the lines to fit the window width. In the second, IPF does not wrap the lines, because :lines. prevents them from being formatted. If a line of text were to exceed the width of the current window, it would be clipped. Also, when IPF encounters other tags between :lines. and :elines., such as quotation tags, the tags are processed.

Aligned Lines: :lines. has an align= attribute, which you use to align text to the left, right, or center of the window.

Assume that in the previous example, the tag was:

:lines align=center.

The output would be as shown here.

Normally, lines of text that have no formatting tags
are "wrapped" by IPF; that is, irregular lines in the
source file become a continuous string, and one word
follows another on a line until the line width of the
current window is filled, a formatting tag is
encountered, or the end of the window is reached.

Text aligned in the center of the window.


[Back] [Next]