[Zope-dev] Line wrapping problem at zope sites

Martijn Pieters mj@antraciet.nl
Fri, 23 Apr 1999 08:57:35 +0200


At 16:37 22/04/99 , Robert OConnor wrote:
>The text in the right side of the main ZOPE page
>exhibits the proper line wrapping as one expands and
>contracts the browser window on the right hand 
>side. [#1]
>http://www.zope.org
>
>Some other pages on zope have a wrap problem, for
>example [#2]: http://zdp.zope.org/FAQ/all
>
>The first paragraph that starts 
>"This FAQ is a project of the Zope Documentation Project, and...."
>
>This paragraph continues as one line and continues off the 
>right edge of the window. If one clicks on the link at the
>bottom, "printable page", [#3]
>http://zdp.zope.org/FAQ/all?pp=1
>all is well and moving the right edge moves properly wraps
>the text as into a multi line paragraph.
>
>This seems to be a problem with how text is formatted when
>it is part of a "Zope headlines" _table_ with the zope logo
>and shortcuts on the left as seen in #1 & #2.
>
>The source looks ok for this paragraph:  
>(note: parens used instead of bbrackets here)
>
>(p)    This FAQ is a project of the Zope Documentation Project, and aims
>    to answer any (or at least lost) questions you might have about
>    Zope and how to use it.(/p)
>
>So it must be something with the table used.  This
>problem is seen both with IE5 and NS4.5
>
>-Bob

The problem lies in the fact that Structured Text examples are rendered
using <PRE> HTML tags. The browser will not wrap these paragraphs, so they
widen the table. The browser then extends ALL text to the width of the
table. When using the Printable Page option, no table is used to render the
page, and all is well, apart from the example code.

We are aware of the problem, and we might be able to solve it when we
develop the CoolFAQ.

--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-6254545 Fax: +31-35-6254555
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------