htmldoc - wrong linking - anchor bookmarks inside two different documents, same bookmark name

Bug #220201 reported by Savvas Radevic
2
Affects Status Importance Assigned to Milestone
htmldoc (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: htmldoc

Hardy heron 8.04 (alpha5 to release candidate, updated)

htmldoc:
  Installed: 1.8.27-3
  Candidate: 1.8.27-3
  Version table:
 *** 1.8.27-3 0
        500 http://archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status

It appears that htmldoc doesn't "see" the difference of anchor bookmarks that belong to two different documents but with the same anchor name.

Example:
I tried to create a personal PDF from the Tcl 8.5 manual page, so I put everything into a folder:
wget -nd -np -N -r --level=1 -k -p http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm
then ran htmldoc, selected input type as "web page" added the contents.htm as a first page then added the rest of the .htm files.
I've set it to be output as "tcl-commands.pdf" in the same folder.

The conversion was successful, and everything was linked OK, except for one problem:
The anchor bookmarks were linked to the wrong page and to the wrong place, i.e. "string map ?-nocase? mapping string" linked to the wrong page of http://tcl.tk/man/tcl8.5/TclCmd/tclvars.htm#M39 instead of the correct one of http://tcl.tk/man/tcl8.5/TclCmd/string.htm#M39

This only happens with multiple htm conversion. If I convert just a single htm ( for example http://tcl.tk/man/tcl8.5/TclCmd/string.htm ) to PDF the anchor bookmarks within the page are correctly linked.

description: updated
Revision history for this message
Jeff Licquia (jeff-licquia) wrote :

This bug had been reported upstream, and upstream has indicated they won't fix it until 1.9:

http://www.htmldoc.org/str.php?L94+P0+S-2+C0+I40+E0+M10+Q

Revision history for this message
Savvas Radevic (medigeek) wrote :

When is 1.9 coming? That's a shame, a patch is available and they don't use it for 3 years
Can't the package maintainer patch it just for Ubuntu?

Changed in htmldoc:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.