[Top][All Lists]

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

Re: [Lynx-dev] <PRE>...&shy;...</PRE>

From: David Woolley
Subject: Re: [Lynx-dev] <PRE>...&shy;...</PRE>
Date: Thu, 23 Oct 2008 23:56:38 +0100
User-agent: Thunderbird (X11/20080914)

Paul Gilmartin wrote:

And all 3 browsers collapse the soft hyphen.  I wonder
whether this correct, or if it should be rendered as a
single character position, even as multiple horizontal
and vertical spaces are not collapsed in the range of
a <PRE>

The main effect of PRE is to preserve white space. One can override the font to a proportional one.

Does some standard clarify this?  What's the printable
representation of &shy; in ISO-8859-1, anyway?

A hyphen, or nothing at all.

Soft hyphen isn't white space, so it is handled normally, i.e. it is only takes up space at the end of a line (and then only under certain other conditions, which are detailed in one of the Unicode appendices).

Using soft hyphens in pre is not a sensible thing to do!

David Woolley
Emails are not formal business letters, whatever businesses may want.
RFC1855 says there should be an address here, but, in a world of spam,
that is no longer good advice, as archive address hiding may not work.

reply via email to

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