Package: linuxdoc-tools
Version: 0.9.21-0.5
Severity: normal

When sgml original file is a "report" as it stands for Linux-Init-HOWTO.sgml, a 
bug
occurs, when using '-s 0' option with command linuxdoc to give a unique html 
file
linuxdoc -B html -s 0 foo-HOWTO.sgml
$ sgml2html -s 0 foo-HOWTO.sgml

No such problem with sgml file written as "article"
The foo-HOWTO.html produced gives a document with only the title, the 1st 
section
name and 1st subsection name if any.

This du to the following line 501 in Html2Html.pm file (debian package):
501
>       $outfh->close;

It closes STDOUT in "$super_page_mode" + $chapter_mode case.

To avoid this issue you should change this line with the following :
503c501
<       if ($outfh->fileno != STDOUT->fileno && !$chapter_mode) {
<         $outfh->close;
<       }

Regards, Xavier Droubay

PS: this issue may still exists in newer versions since the diff of file
/usr/share/linuxdoc-tools/LinuxDocTools/Html2Html.pm in v 0.9.21-0.5
with latest package 0.9.21-0.10 is the same diff.


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages linuxdoc-tools depends on:
ii  gawk                      1:3.1.5.dfsg-4 GNU awk, a pattern scanning and pr
ii  libc6                     2.3.6.ds1-13   GNU C Library: Shared libraries
ii  mawk                      1.3.3-11       a pattern scanning and text proces
ii  perl                      5.8.8-7        Larry Wall's Practical Extraction
ii  sgml-base                 1.26           SGML infrastructure and SGML catal
ii  sgml-data                 2.0.3          common SGML and XML data
ii  sp                        1.3.4-1.2.1-47 James Clark's SGML parsing tools

linuxdoc-tools recommends no packages.





        

        
                
___________________________________________________________________________ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com

Reply via email to