[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LYNX-DEV Centering <pre> text.

From: Alan Cox
Subject: Re: LYNX-DEV Centering <pre> text.
Date: Thu, 8 May 1997 08:49:11 +0100 (BST)

> To properly apply multiple formatting styles onto a body of text you need
> a multi-pass system.  Since Lynx only makes one HTML pass at the incomming
> document it can't do it.  Lynx will never know the widest line before it
> has to apply the centering.

Really you need a different parser. Lynx does layout as it does the scanning,
now that is very very clever but doesn't always work out the best. Really
it should build a "PRE" object and at the </PRE> work out its size. The
second pass then just walks the objects and does layout. That (with recursive
parsing) also does tables


; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]