Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-12-01
15:20 • Closed ticket [2840d61e7b]: HTML manual generation broken plus 7 other chang... artifact: fae1cdc3bc user: jan.nijtmans
14:50 • New ticket [2840d61e7b]. artifact: f7d19b0069 user: anonymous

HTML manual generation broken

Closed / Out of Date2840d61e7bce3565945c1f60e8e24001e23bae97Created 3 years agoUpdated 3 years ago
Descriptionplain2023-12-01 14:50:44
When building Tcl9.0b1 with Tk8.7b1, generating HTML manuals using tcltk-man2html.tcl does not work anymore.
This is due to removing "pack-old" from the list of excluded pages in variable excluded_pages.
The regexp in proc output-names (file tcltk-man2html-utils.tcl) is not able to parse a name with a "-" in it, so the head variable is undefined, see stripped-down example below.

<code>
proc output-name {line} {
    regexp {^([^-]+) - (.*)$} [regsub -all {[ \n\r\t]+} $line " "] -> head tail
    puts "$head ; $tail"
}
output-name "pack-old \- Obsolete syntax for packer geometry manager"
</code>

Paul
jan.nijtmanswiki2023-12-01 15:20:46

"doc/pack-old.n" was removed from Tk 8.7 in this commit: https://core.tcl-lang.org/tk/info/0d4556a676bf2f54

As soon as that commit appears in the 8.7b1 branch, it will work again.

At this moment, Tcl/Tk 9.0 development has priority over 8.7, so it might take a while for the 8.7b1 branch to be updated.

Log in (anonymous is fine) to add a comment.