Creating HTML document question

Bill Campbell bill at celestial.com
Tue Feb 20 15:42:06 PST 2007


On Tue, Feb 20, 2007, Scott Walker wrote:
>Using the following:
>
>Fp 5.0.15 rclerk
>
>I am creating an html documents from processing.  One of my lines of
>code to create is as follows:
>
>html :td :al "left"   ; html :tx fp ; html :td -
>
>
>The variable fp contains:
>
>"Test Item Stuff        $275.00      "
>
>When I create the html document and view or print it, I get:
>
>"Test Item Stuff $275.00             "
>
>
>Any clue as to why the spaces are dropped?

Because HTML, like xml, pretty much ignores multiple spaces
unless one is in a <pre>...</pre> block.

Formatting such as you want here is normally done with tables,
letting the browser format it, perhaps using cascading style
sheets to control overall format.

<table>
 <tr>
  <th align="LEFT">Test Item Stuff</th>
  <td align="RIGHT>"$275.00</td>
 </tr>
</table>

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

``If ye love wealth greater than liberty, the tranquillity of servitude
greater than the animating contest for freedom, go home from us in peace.
We seek not your consul, nor your arms.  Crouch down and lick the hand that
feeds you.  May your chains set lightly upon you;  and may posterity forget
ye were our countrymen.'' -- Samuel Adams (American Patriot)


More information about the Filepro-list mailing list