Creating HTML document question
Kenneth Brody
kenbrody at bestweb.net
Tue Feb 20 16:02:06 PST 2007
Quoting Scott Walker (Tue, 20 Feb 2007 17:54:42 -0500):
> 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?
The spaces weren't dropped in the generated document. (Check the
source file yourself.)
However, it is a property of HTML that all whitespace is treated
the same. That is, one space or a hundred, it doesn't matter.
If you need to retain the text as-is, you need to put it inside
"<pre>", or some style created with CSS to tell it to retain
such formatting.
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list