centering with <br/>, css overriding, bug?

fesegre <[email protected]> Wed, 25 Dec 2013 23:49:28 +0200
Newsgroups gmane.comp.web.elinks.user
Organization Weizmann Institute
Message-ID <[email protected]>
--===============1467775568==
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html style=3D"direction: ltr;">
  <head>

    <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF=
-8">
    <style type=3D"text/css">body p { margin-bottom: 0cm; margin-top: 0pt=
; } </style>
  </head>
  <body style=3D"direction: ltr;"
    bidimailui-detected-decoding-type=3D"UTF-8" bgcolor=3D"#FFFFFF"
    text=3D"#000000">
    I'm trying to pretty-text-dump pages with nicely formatting css,
    including centered text. My problem boils down to the following
    snippet:<br>
    <br>
    <pre>&lt;html&gt;</pre>
    <pre>=C2=A0 &lt;head&gt;</pre>
    <pre>=C2=A0=C2=A0=C2=A0 &lt;style type=3D"text/css"&gt;</pre>
    <pre>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 p {text-align: justify; }</=
pre>
    <pre>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 .center {text-align: center=
; }</pre>
    <pre>=C2=A0=C2=A0=C2=A0 &lt;/style&gt;</pre>
    <pre>=C2=A0 &lt;/head&gt;</pre>
    <pre>=C2=A0 &lt;body&gt;</pre>
    <pre>=C2=A0=C2=A0=C2=A0 &lt;p class=3D"center"&gt;1. This is centered=
&lt;/p&gt;</pre>
    <pre>=C2=A0=C2=A0=C2=A0 &lt;p style=3D"text-align: center;"&gt;2. And=
 this one&lt;br/&gt;is centered too&lt;/p&gt;</pre>
    <pre>=C2=A0=C2=A0=C2=A0 &lt;p class=3D"center"&gt;3. But also this on=
e should,&lt;br/&gt;and comes not.&lt;/p&gt;</pre>
    <pre>=C2=A0 &lt;/body&gt;</pre>
    <pre>&lt;/html&gt;</pre>
    <p><br>
    </p>
    <p>In FF, Chrome, 1,2,3 are displayed as centered; in elinks 3 is
      left-aligned (it would be centered if I either omitted the css for
      p or the internal &lt;br/&gt;). Bug or feature, and why? ELinks
      0.12pre6, package-installed in ubuntu 13.10.</p>
    <p><br>
    </p>
    <p>Thanks, Enrico<br>
    </p>
  </body>
</html>

--===============1467775568==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
elinks-users mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-users

--===============1467775568==--