From charnier@xp11.frmug.org  Sat Jan 11 14:31:57 1997
Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252])
          by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id OAA10548
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 Jan 1997 14:31:53 -0800 (PST)
Received: (from uucp@localhost) by frmug.org (8.8.2/8.8.2/frmug-1.3) with UUCP id XAA00759 for FreeBSD-gnats-submit@freebsd.org; Sat, 11 Jan 1997 23:31:45 +0100 (MET)
Received: (from charnier@localhost) by xp11.frmug.org (8.8.4/8.7.3/xp11-uucp-1.1) id MAA16686; Sat, 11 Jan 1997 12:30:32 +0100 (CET)
Message-Id: <199701111130.MAA16686@xp11.frmug.org>
Date: Sat, 11 Jan 1997 12:30:32 +0100 (CET)
From: Philippe Charnier <charnier@xp11.frmug.org>
Reply-To: charnier@xp11.frmug.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: incorrect window title with Netscape
X-Send-Pr-Version: 3.2

>Number:         2453
>Category:       docs
>Synopsis:       window titles can't resolve <code>aaaaa</code>
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jfieber
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 11 14:40:01 PST 1997
>Closed-Date:    Fri Jan 17 16:48:49 EST 1997
>Last-Modified:  Fri Jan 17 16:49:47 EST 1997
>Originator:     Philippe Charnier
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

	

>Description:

	In the handbook, code that is defined by
<sect1><heading>Future plans for <tt/CTM/</heading>

	is incorrectly displayed in the window title, I see
`Future plans for <code>CTM</code>' instead of `Future plans for CTM'.

>How-To-Repeat:

	Browse using Netscape or grep handbook looking for TITLE.
handbook216.html:<TITLE>What is FreeBSD-current <em>NOT</em>?</TITLE>
handbook224.html:<TITLE>Why should I use <code>CTM</code>?</TITLE>
handbook262.html:<TITLE>What's a <em>kernel option</em>, anyway?</TITLE>
[...]

>Fix:
	
	Do not allow this in documents or use something like:

Index: sgmlfmt.pl
===================================================================
RCS file: /home2h/FreeBSD.cvsroot/src/usr.bin/sgmlfmt/sgmlfmt.pl,v
retrieving revision 1.17
diff -u -r1.17 sgmlfmt.pl
--- sgmlfmt.pl	1996/10/05 23:38:55	1.17
+++ sgmlfmt.pl	1997/01/11 11:19:58
@@ -396,6 +396,10 @@
 	      if ($st_sl[$sc] > 0 && $st_sl[$sc] <= $maxlevel) {
 		  $header[$st_ol[$sc]] = 
 		      "$doctype\n<HTML>\n<HEAD>\n<TITLE>$_</TITLE>\n</HEAD>\n$BODY\n";
+		  $header[$st_ol[$sc]] =~ s/<code>//g;
+		  $header[$st_ol[$sc]] =~ s/<\/code>//g;
+		  $header[$st_ol[$sc]] =~ s/<em>//g;
+		  $header[$st_ol[$sc]] =~ s/<\/em>//g;
 		  $header[$st_ol[$sc]] .= $html_header;
 		  if ($opt_ssi) { # Server Side Include hook
 		      $header[$st_ol[$sc]] .=

>Release-Note:
>Audit-Trail:

The supplied solution is close, but not quite on the mark.
I've actually known about this problem for some time....

State-Changed-From-To: open->analyzed 
State-Changed-By: jfieber 
State-Changed-When: Tue Jan 14 23:29:00 EST 1997 
State-Changed-Why:  
claim the problem. 



Responsible-Changed-From-To: freebsd-bugs->jfieber 
Responsible-Changed-By: jfieber 
Responsible-Changed-When: Tue Jan 14 23:29:00 EST 1997 
Responsible-Changed-Why:  
claim the problem 
State-Changed-From-To: analyzed->closed 
State-Changed-By: jfieber 
State-Changed-When: Fri Jan 17 16:48:49 EST 1997 
State-Changed-Why:  
Problem solved with a variant on the supplied patch. 

>Unformatted:
