Creating HTML document question
Bruce Easton
bruce at stn.com
Tue Feb 20 15:52:16 PST 2007
Scott Walker wrote Tuesday, February 20, 2007 5:55 PM:
[..]
> 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?
>
Scott - in html, in general, whitespace characters in a row
including newlines, tabs, spaces are collapsed into a single space
wherever they appear in the output. In addition, leading and trailing
whitespace is eliminated.
There are several ways to preserve, position, and align: one
would be to use more than one <td> in a row each with its own
width and alignment (since you are already using a table here);
another would be the application of style attributes such as
margin-left, padding, etc.
Also, if you already know some html, then it would be easier
for you to use only three fp html commands:
:cr, :cl and :tx
and output all of your document from just after the opening of
the head section thru </body> with the html :tx command.
or you can use the technique of using the open and close file
commands and writing your output documents that way. Just a
lot easier than keeping track of two languages at once.
Bruce
Bruce Easton
STN, Inc.
More information about the Filepro-list
mailing list