Re: HTML problem


Subject: Re: HTML problem
From: Paul Rohr (paul@abisource.com)
Date: Fri Feb 11 2000 - 21:59:29 CST


At 09:36 PM 2/11/00 -0600, sam th wrote:
>I have a suggestion. Take the document you sent me, and view it as html in
>sy, lynx. (most web browsers will ignore all the other tags. Then view
>it in abiword. the html will look double-spaced. This is NOT how it
>looks in abiword. Then edit the file by hand, and remove the <p> tags,
>and add <br /> tags in place of the </p> tags. Then view it again as
>html. You will see that it looks like the abiword display. If we wanted
>consitency of markup, we would use <p></p> the way we did before.
>However, what we want (AFAIK) is consitency of appearance across all
>exported formats. Thus, <br /> tags do the job, and <p> tags don't.

I'm not going to debate this one. Paragraphs have P tags, forced line
breaks get BR tags. Period.

You're getting confused by the fact that different "user agents" (to use
CSS-speak) have different default styles bound to certain basic tags. Thus,
the vanilla whitespace between paragraphs may differ if nobody specifies
style properties explicitly.

For example, the "implicit" style for P tags in most HTML browsers adds
whitespace, while the hardwired stylesheet in AbiWord currently doesn't. As
soon as we add template support, that may no longer be true. (For example,
I always override that aspect of the default style in my own documents.
It looks stupid.)

If you want the output to look more consistent, then figure out how to
export the style information which is controlling inter-block whitespace.

Paul



This archive was generated by hypermail 2b25 : Fri Feb 11 2000 - 21:54:04 CST