From xemacs-m  Wed May  7 05:02:46 1997
Received: from steadfast.teradyne.com (steadfast.teradyne.com [131.101.1.200])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id FAA21522
	for <xemacs-beta@xemacs.org>; Wed, 7 May 1997 05:02:45 -0500 (CDT)
Received: from engine.ecf.teradyne.com (engine.ecf.teradyne.com [131.101.192.6]) by steadfast.teradyne.com (8.7.1/8.7.1) with ESMTP id GAA16106; Wed, 7 May 1997 06:06:29 -0400 (EDT)
Received: from midnight.eng.ecf.teradyne.com (midnight.ecf.teradyne.com [131.101.192.49]) by engine.ecf.teradyne.com (8.7.1/8.7.1) with SMTP id MAA00074; Wed, 7 May 1997 12:02:08 +0200 (MET DST)
Received: by midnight.eng.ecf.teradyne.com (SMI-8.6/SMI-SVR4)
	id MAA04129; Wed, 7 May 1997 12:02:07 +0200
To: Gary.Foster@Corp.Sun.COM (Gary D. Foster)
Cc: xemacs-beta@xemacs.org
Subject: Re: More HTML information
References: <bci67wwfwc7.fsf@corp.Sun.COM>
X-Face: 4[iHdXiTu\V3u[~\I)<f9HC);%~nG8`oUqv#uzvs6=\V{AjN6Sn
 c/qi;YLwRmEbt8Y*=j5n(urqY@chPh@J'D"QlqD!C8>*}#kYF[-tYl3VZga/HSOP|K,{L
 Rtu@f0y/=O&Cu}\:~d|P$JON?pn?j,&CnPb1z#/TL9bkAJwyol&a:SvYj-VYbM=Dtxhk9
 =w|R6U3_;SH&B<Mfy6Q%#
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: multipart/mixed;
 boundary="Multipart_Wed_May__7_12:02:05_1997-1"
Content-Transfer-Encoding: 7bit
From: Adrian Aichner <aichner@ecf.teradyne.com>
Date: 07 May 1997 12:02:05 +0200
In-Reply-To: Gary.Foster@Corp.Sun.COM's message of 06 May 1997 08:34:32 -0700
Message-ID: <rxsn2q7d2hu.fsf@midnight.ecf.teradyne.com>
Lines: 125
X-Mailer: Gnus v5.4.45/XEmacs 20.2(beta1)

--Multipart_Wed_May__7_12:02:05_1997-1
Content-Type: text/plain; charset=US-ASCII

>>>>> "Gary" == Gary D Foster <Gary.Foster@Corp.Sun.COM> writes:

    Gary> Ok, I've narrowed the nit down.  It's actually not with the <ul> or
    Gary> <li> stuff (although in some cases a closing </li> *does* seem to make 
    Gary> a difference, but in others it doesn't).  The problem actually seems
    Gary> to be with my use of <br> tags.  Please observe the following brand
    Gary> new document:

    Gary> ---------------------------

    Gary> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">

Gary,

You might want to check which DTD is right for your purposes.
The above seems an unlikely candidate.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
could be a good choice.

I tried your example and it behaves like you stated.

When I use the HTML 3.2 DTD things work fine; more specifically:

Modify -> Normalize
	does not add </BR> tags

Indentation
	is not changed by the <BR> tag

The document passes a HTML check, unlike your original.
	(Move -> Next trouble spot (C-c C-o))


--Multipart_Wed_May__7_12:02:05_1997-1
Content-Type: text/html; charset=US-ASCII
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
  <HEAD>
    <TITLE>test</TITLE>
  </HEAD>

  <BODY>
    <H1>test</H1>

    This is the first line
    <BR>
    This is the second line


    <HR>
    <ADDRESS><A HREF="mailto:Gary.Foster@corp.Sun.COM">Gary D. Foster</A></ADDRESS>
<!-- Created: Tue May  6 08:26:35 PDT 1997 -->
  </BODY>
</HTML>

--Multipart_Wed_May__7_12:02:05_1997-1
Content-Type: text/plain; charset=US-ASCII


    Gary> <html>
    Gary>   <head>
    Gary>     <title>test</title>
    Gary>   </head>

    Gary>   <body>
    Gary>     <h1>test</h1>

    Gary>     This is the first line
    Gary>     <br>
    Gary>       This is the second line


    Gary>     <hr>
    Gary>     <address><a href="mailto:Gary.Foster@corp.Sun.COM">Gary D. Foster</a></address>
    Gary> <!-- Created: Tue May  6 08:26:35 PDT 1997 -->
    Gary> <!-- hhmts start -->
    Gary> Last modified: Tue May  6 08:27:28 PDT 1997
    Gary> <!-- hhmts end -->
    Gary>   </body>
    Gary> </html>

    Gary> ----------------------------

    Gary> Now, granted, my knowledge of the HTML specs may be scanty (and I'm
    Gary> not in a position to go check the actualy documents right now but I
    Gary> will be soon), but I *believe* the <br> tag isn't supposed to be
    Gary> considered a container and therefore shouldn't affect indention
    Gary> level.  However, if I add a </br> to the above page, just after the
    Gary> <br> tag, the line "This is the second line" will then indent properly 
    Gary> with the TAB key.  However, adding a </br> adds ANOTHER line break in
    Gary> which messes up my formatting.

This is true for the Netscape Browser, which sucks in this respect.
XEmacs's w3 does not render HTML-normalized documents different from
non-normalized ones.

    Gary> If this is invalid HTML and there's a proper way to do this, I'm
    Gary> perfectly willing to change my HTML style if someone will show me how
    Gary> to accomplish it correctly.  If it's correct, however, I'd sure like
    Gary> to know where to fix the above nit.

I recommend you start by switching to the following DTD:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

Perform DTD -> Parse DTD

Re-indent via (C-x h C-M-\)

HTML-check your document (C-c C-o)

and you'll live happily ever after.

Adrian

    Gary> -- Gary F.



--Multipart_Wed_May__7_12:02:05_1997-1--

