help-texinfo
[Top][All Lists]
Advanced

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

Re: exdent


From: Karl Eichwalder
Subject: Re: exdent
Date: Sun, 19 May 2002 16:41:25 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu)

Eli Zaretskii <address@hidden> writes:

> ??? Doesn't <pre> mean the browser should leave all whitespace alone, and 
> also retain line breaks and other formatting details?

Sure, but it depends on the context:

<p>
<pre>
line
line
line
</pre>
</p>

<pre>
line
line
line
</pre>

<ol>
<li>
<p>text
</p>
<pre>
line
line
line
</pre>
</li>

<li>
<pre>
line
line
line
</pre>
</li>
</ol>

lynx (current devel):
=====================


line
line
line
line
line
line
    1. text
line
line
line
    2.
line
line
line  
-=-=-=-=-=-=-=-=-=-=-=-=-=- cut here -=-=-=-=-=-=-=-=-=-=-=-=-=-

w3m:
====
line
line
line

line
line
line

 1. text

    line
    line
    line
 2. line
    line
    line
-=-=-=-=-=-=-=-=-=-=-=-=-=- cut here -=-=-=-=-=-=-=-=-=-=-=-=-=-

galeon:
=======

line
line
line

line
line
line

 1. text

    line
    line
    line

 2. line
    line
    line
-=-=-=-=-=-=-=-=-=-=-=-=-=- cut here -=-=-=-=-=-=-=-=-=-=-=-=-=-

The lynx way doesn't look that nice but it often very convenient: no
line wrapping is necessary when code fragments with 79 characters line
length are displayed in 80 character wide terminal are displayed.

IIRC, earlier Netscape version did indent the first 2 examples, too.

> I don't want to give a hint, I want to specify the precise indentation.
> I thought that was what <pre> was all about.

No, please don't do thus "manual" formatting stuff.  Thinks about
output devices like handhelds, braille or audio devices; they are
better served using (IMO):

<pre class="example">
line
line
line
</pre>

and a CSS stylesheet like this:

pre.example {
        white-space: pre;
        margin-left: 4em;
}

-- 
address@hidden (work) / address@hidden (home):              |
http://www.suse.de/~ke/                                  |      ,__o
Free Translation Project:                                |    _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/             |   (*)/'(*)



reply via email to

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