XFA Specification
Chapter 25, Rich Text Reference
Retaining Consecutive Spaces (xfa-spacerun:yes)
949
<span style="text-decoration:underline">fourth</span>
words are underlined.
</p>
Produces:
The second and fourth words are underlined.
Example:
<p>The
<span style="text-decoration:line-through underline">second</span>
and <span style="text-decoration:line-through">fourth</span>
words appear with strikethrough.
</p>
Produces:
The second and fourth words appear with strikethrough.
The above example also demonstrates that a region of text may have both an underline and strikethrough
by applying the
[CSS2]
text-decoration
style attribute with multiple values.
Retaining Consecutive Spaces (xfa-spacerun:yes)
Normally, an XFA processing application removes consecutive spaces, as described in
“White Space
Handling” on page 133;
however, this behavior can be overridden in rich text.
A run of consecutive normal spaces may be represented via the use of a
span
element in conjunction with
a nonstandard
[CSS2]
style attribute
xfa-spacerun
. An XFA processing application that supports this
feature must interpret each non-breaking-space character within the span as representing a normal space
character (character 32).
In order to allow this
span
element to produce an approximate visual rendering, when processed by a
browser or other
[XHTML]
processing application, the
span
element may contain a mixture of
non-breaking-space and normal space characters. While the application that supports this
xfa-spacerun
style must interpret each non-breaking-space character within the span as representing a
normal space character (character 32), the browser or other
[XHTML]
processing application will likely
ignore the
xfa-spacerun
style and provide a rendering that may be visually similar.
Example:
<p style="font-family:Courier">
Two spaces here: <span style="xfa-spacerun:yes">&#160; </span>
and three spaces here: <span style="xfa-spacerun:yes">
&#160;&#160; </span>before the next word.</p>
Note:
The entity
&#160;
is a non-breaking space.
Home Index Bookmark Pages
Pages: Home Index All Pages