Skip to content
This repository
Newer
Older
100644 54 lines (44 sloc) 1.576 kb
4e1b7b1f » docelic
2007-11-10 * UserDB glossary entry and supporting files
1 __NAME__ purpose
8b67bce1 » docelic
2007-11-10 * small updates/fixes
2 replace all spaces (" ") with nonbreakable space (" ") characters
4e1b7b1f » docelic
2007-11-10 * UserDB glossary entry and supporting files
3 __END__
4
5
6 __NAME__ see also
7 space_to_null, lspace_to_nbsp
8 __END__
9
10
11 __NAME__ description
12 The filter replaces all space ("<literal> </literal>") characters
8b67bce1 » docelic
2007-11-10 * small updates/fixes
13 with &glos-HTML;'s nonbreakable-space ("<literal>&amp;nbsp;</literal>")
4e1b7b1f » docelic
2007-11-10 * UserDB glossary entry and supporting files
14 characters.
15 </para><para>
16 This is useful for places where you want strings to appear in a single
8b67bce1 » docelic
2007-11-10 * small updates/fixes
17 line, without word-wrapping to the next line.
4e1b7b1f » docelic
2007-11-10 * UserDB glossary entry and supporting files
18 __END__
19
20 __NAME__ notes
8b67bce1 » docelic
2007-11-10 * small updates/fixes
21 In &glos-HTML;, multiple spaces in a line render as just one space on the
4e1b7b1f » docelic
2007-11-10 * UserDB glossary entry and supporting files
22 screen. When the spaces are converted to "&amp;nbsp;", however, every
8b67bce1 » docelic
2007-11-10 * small updates/fixes
23 nonbreakable space will produce one space character on the screen &mdash;
24 it's how &glos-HTML; works.
4e1b7b1f » docelic
2007-11-10 * UserDB glossary entry and supporting files
25 Use the &glos-filter;'s <option>compress</option> when you want to
26 preserve the behavior of only one space being visible on the screen.
27 __END__
28
29 __NAME__ online: Filter example
30 <programlisting><![CDATA[
31 <div style="width: 80px;">
8b67bce1 » docelic
2007-11-10 * small updates/fixes
32 This is a very small DIV and will surely word-wrap this text to multiple lines.
33 With the filter applied, however, it will force the DIV to stretch and render as single line.
4e1b7b1f » docelic
2007-11-10 * UserDB glossary entry and supporting files
34 </div>
35
36 <div style="width: 80px;">
37 [filter space_to_nbsp]
8b67bce1 » docelic
2007-11-10 * small updates/fixes
38 With the filter applied, however, it will force the DIV to stretch and render as single line.
4e1b7b1f » docelic
2007-11-10 * UserDB glossary entry and supporting files
39 [/filter]
40 </div>
41 ]]></programlisting>
42 __END__
43
44
45
46 __NAME__ online: Filter example
47 <programlisting><![CDATA[
48 <div>
49 [filter space_to_nbsp.compress]
8b67bce1 » docelic
2007-11-10 * small updates/fixes
50 Multiple spaces in a line will render as just single space.
4e1b7b1f » docelic
2007-11-10 * UserDB glossary entry and supporting files
51 [/filter]
52 </div>
53 ]]></programlisting>
54 __END__
8b67bce1 » docelic
2007-11-10 * small updates/fixes
55
Something went wrong with that request. Please try again.