Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jan 1997 12:30:32 +0100 (CET)
From:      Philippe Charnier <charnier@xp11.frmug.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/2453: incorrect window title with Netscape
Message-ID:  <199701111130.MAA16686@xp11.frmug.org>
Resent-Message-ID: <199701112240.OAA10963@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2453
>Category:       docs
>Synopsis:       window titles can't resolve <code>aaaaa</code>
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 11 14:40:01 PST 1997
>Last-Modified:
>Originator:     Philippe Charnier
>Organization:
>Release:        FreeBSD 3.0-CURRENT i386
>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]] .=

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701111130.MAA16686>