man2html patch 
Author Message
 man2html patch


I had some minor problem to feed the HTML documentation into
our full text indexer of the WWW server. The indexer complained
about the markup in title tag. (<B> <I>).  Further search results
display the title to identify the window. Therefore I added the file name
for easier identification. Patch appended.

Another thing is that there is now a Grid.htm (tixGrid) and
grid.htm (grid).  I guess that the names are also a problem in win32.
Therefore I would suggest to rename doc/mann/Grid.n doc/mann/tixGrid.n.
(If one what's to rebuild the html pages without running perl Makefile.PL
one can make Grid.n name change in doc/Makefile and doc/MANFILES by hand.)

Hope it's useful,
P.S. URL is subject to change but read/search at least for a while the
     Perl/Tk docu:   http://www.*-*-*.com/ :8080/doc/Tk402.001
     Impression, suggestions?

--- man2html    1997/06/19 20:18:51     1.1

     open($file,">$file") || die "Cannot open $file:$!";
-    $obj->tagged('TITLE',$obj->{Description}) if (defined $obj->{Description});
+    # Make a title:
+    my $title = $obj->{FNAME};
+    print "--- $title ---\n";
+    $title =~ s/-+/::/g;
+    $title =~ s/\.[^.]+$//g;
+    if (defined $obj->{Description})
+     {
+      my $text = $obj->{Description};
+      $text =~ s/<[^>]+>//g;
+      $title .= ' - ' . $text;
+     }
+    $obj->tagged('TITLE',$title);

This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the


Mon, 06 Dec 1999 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. man2html

2. man2html

3. Looking for man2html converter

4. man2html

5. Patches up to 19, problem applying with patch

6. PATCH: version 3.0 patch #1

7. frustration: old perl bug, patches & patches

8. pTk 8.4.24 patch -, complements previous Error.pod patch

9. Patch to Data::ShowTable - where is the author? - Patch (0/1)

10. using from AUTOLOAD to patch invoker opcode

11. perl5 fresh patches -- where?

12. Posting of two patches needed for AIX3.2.5


Powered by phpBB® Forum Software