aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.123 - [wwrap] Built-In

Mnemonic aid: wwrap for Word WRAP

This word wraps when content exceeds column col. Whitespace is collapsed. If wrap= is not provided, the "wrap" consists of a trailing newline at the end of each wrapped line. If wrap is provided, then if you want a newline, you must provide it within the style. The style is newly evaluated with each wrap.

Characters added by a line-wrap style are not counted towards the wrapping trigger. This allows the style to add HTML and other changes without changing the point where the content wraps. To put this another way, if your style adds printable characters, then the line may exceed the length set by the col setting.

If nohtml=1 is provided, then  [wwrap]  pays no attention to properly formatted HTML. Be careful you don't have stray < or > characters in your source; it'll confuse the wrapper, and besides, it's invalid HTML and should be fixed just on general principles.

if eol=X is provided, then wherever the X character is encountered, a newline will be inserted into the result and the word wrap process will restart. This provides a means to generate multiple word-wrapped sequences in conventional paragraph form.


[wwrap (eol=X,)(nohtml=1,)(wrap=styleName,)col,content]

123456789 123456789 +++++
[wwrap 20,This is a test. This is only a test.]
----
[style linewrapper [vinc counter]: [b][nl]]
[local counter 0]
123456789 123456789 +++++
[wwrap wrap=linewrapper,20,This is a test. This is only a test.]
----
123456789 123456789 123456789 1+++++
[wwrap 31,this is a test of the emergency broadcast system.
If this had been a <b>real</b> emergency, we would not be explaining
to you that this is a test. This is only a test.
]
----
123456789 123456789 123456789 123456789 +++++
[wwrap nohtml=1,40,This is a <b>test</b> of the
emergency <font color="#ff0000">broadcast system</font>.
This is <i>only</i> a test. If this had been a real
emergency, you would have been instructed to weep in
abject fear.
]
----
123456789 123456789 123456789 123456789 +++++
[wwrap nohtml=1,40,This is a <b>test</b> of the
emergency <font color="#ff0000">broadcast system</font>.
This is <i>only</i> a test. If this had been a real
emergency, you would have been instructed to weep in
abject fear.
]
----
123456789 123456789 123456789 123456789 +++++
[wwrap eol=|,nohtml=1,40,This is a <b>test</b> of the
emergency <font color="#ff0000">broadcast system</font>.|
This is <i>only</i> a test. If this had been a real
emergency, you would have been instructed to weep in
abject fear.
]

123456789 123456789 +++++
This is a test. This
is only a test.
----
123456789 123456789 +++++
1: This is a test. This
2: is only a test.
----
123456789 123456789 123456789 1+++++
this is a test of the emergency
broadcast system. If this had
been a <b>real</b> emergency,
we would not be explaining to
you that this is a test. This
is only a test.
----
123456789 123456789 123456789 123456789 +++++
This is a <b>test</b> of the emergency
<font color="#ff0000">broadcast
system</font>. This is <i>only</i> a
test. If this had been a real emergency,
you would have been instructed to weep
in abject fear.
----
123456789 123456789 123456789 123456789 +++++
This is a <b>test</b> of the emergency
<font color="#ff0000">broadcast system</font>. This is <i>only</i> a test.
If this had been a real emergency, you
would have been instructed to weep in
abject fear.

----
123456789 123456789 123456789 123456789 +++++
This is a <b>test</b> of the emergency
<font color="#ff0000">broadcast system</font>.
This is <i>only</i> a test. If this had been a
real emergency, you would have been
instructed to weep in abject fear.
123456789 123456789 +++++ This is a test. This is only a test. ---- 123456789 123456789 +++++ 1: This is a test. This 2: is only a test. ---- 123456789 123456789 123456789 1+++++ this is a test of the emergency broadcast system. If this had been a real emergency, we would not be explaining to you that this is a test. This is only a test. ---- 123456789 123456789 123456789 123456789 +++++ This is a test of the emergency broadcast system. This is only a test. If this had been a real emergency, you would have been instructed to weep in abject fear. ---- 123456789 123456789 123456789 123456789 +++++ This is a test of the emergency broadcast system. This is only a test. If this had been a real emergency, you would have been instructed to weep in abject fear. ---- 123456789 123456789 123456789 123456789 +++++ This is a test of the emergency broadcast system. This is only a test. If this had been a real emergency, you would have been instructed to weep in abject fear.
Keyboard Navigation
, Previous Page . Next Page t TOC i Index

Valid HTML 4.01 Loose
 

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses Python 2.7