Skip to content
Tcl Source Code History Of Ticket 1c722347fe
Login

History Of Ticket 1c722347fe

Artifacts Associated With Ticket 1c722347fe

  1. Ticket change [83e2711d38] (rid 257362) by anonymous on 2026-10-06 21:28:20:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      tools/tcltk-man2html.tcl and tcltk-man2html-utils.tcl generate HTML files for the user documentation including cross-references and index-pages.
      This tool-set writes wrong target values for several name, id and href-anchor, which results in about 580 not linked pages.
      A target can not include a space or newline (e.g. command with sub-command, like "file exists").
      Usually proc "nospace-text" is called, but not at every needed place (after "#").
      Additionally this proc replaces only spaces.
      But there are pages with more than (single) spaces and/or newlines.
      At least the letter "3" is needed for keyword "3D".
      My propose correct these points and add a meta-viewport in the HTML-head section.
      Please see the attached ZIP with my changes (complete files, because I can't use "diff -u").
      The problems of not right ordered/cascaded tags ol, dt, dd, dl, and dt I can't solve, sorry.
      Best greetings from Germany, Thomas [TWu]
      
    5. foundin initialized to: "50/9.0"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Important"
    11. status initialized to: "Open"
    12. submitter initialized to: "anonymous"
    13. subsystem initialized to: "53. Configuration and Build Tools"
    14. title initialized to:
      Tool generate wrong links for targets containing spaces/newlines
      
    15. type initialized to: "Bug"
  2. Add attachment "tools_tcltk-man2html.zip" [c28a55925c] (rid 257363) by anonymous on 2026-10-06 21:37:45.

  3. Ticket change [3cbc223ebf] (rid 257429) by anonymous on 2026-10-07 20:40:54:

    1. comment changed to:
      tools/tcltk-man2html.tcl and tcltk-man2html-utils.tcl generate HTML files for the user documentation including cross-references and index-pages.
      This tool-set writes wrong target values for several name, id and href-anchor, which results in about 580 not linked pages.
      A target can not include a space or newline (e.g. command with sub-command, like "file exists").
      Usually proc "nospace-text" is called, but not at every needed place (after "#").
      Additionally this proc replaces only spaces.
      But there are pages with more than (single) spaces and/or newlines.
      At least the letter "3" is needed for keyword "3D".
      My propose correct these points and add a meta-viewport in the HTML-head section.
      Please see the attached ZIP with my changes (complete files, because I can't use "diff -u").
      The problems of not right ordered/cascaded tags ol, dd, dl, and dt I can't solve, sorry.
      Best greetings from Germany, Thomas [TWu]
      
    2. icomment:
      I'm sorry to have a left-out copy-paste mistake in the utils-script.
      After the inserted opening bracket one "nospace-text " was forgotten.
      
    3. login: "anonymous"
    4. mimetype: "text/plain"
    5. username: "Thomas [TWu]"
  4. Ticket change [1bcf5e6b06] (rid 259412) by serhiy.storchaka on 2026-10-20 12:57:54:

    1. foundin changed to: "9.1.0"
    2. icomment:
      Thank you, Thomas. The attached ZIP is not available to me, so I made the fix from your description. Confirmed on main: a link check of the HTML generated for Tcl and Tk finds 302 dead anchors and one dead page. The links in the KEYWORDS sections did not go through <tt>nospace-text</tt>, which also replaced only single spaces (some keywords contain a newline), and there was no Keywords page for "3D".
      
      Proposed fix in branch [/timeline?r=man2html-keyword-anchors|man2html-keyword-anchors]: use <tt>nospace-text</tt> for these links, map any whitespace in it, and add index pages for keywords starting with a digit. The link check then finds no dead links; otherwise only the link targets change. The meta viewport is the separate request [7f6005a867]; the nesting of ol, dd, dl and dt is not changed.
      
    3. login: "serhiy.storchaka"
    4. mimetype: "text/x-fossil-wiki"
  5. Ticket change [0c0a9d8163] (rid 259581) by anonymous on 2026-10-20 20:57:05:

    1. icomment:
      Thank You very much, Serhiy! Unfortunately this is not the complete request. The anchors are left. Probably our URI-check found only the connection to the main commands or does not check the name=/id= values at all as local targets from other pages. I use "CSS HTML Validator 2026" to found all problems in the doc of 9.0.4 version. I save my solution to https://blindenfreizeiten.de/TCL/tools_tcltk-man2html.zip so You can make a diff. Also the line-breaks are not handled. Please have a look at it. Many thanks again, Thomas [TWu]
      
    2. login: "anonymous"
    3. mimetype: "text/plain"
    4. username: "Thomas [TWu]"
  6. Ticket change [bc4d085dd0] (rid 259634) by serhiy.storchaka on 2026-10-20 21:48:56:

    1. icomment:
      Thank you, Thomas, the ZIP is available now. Most of it was already in the branch (<tt>nospace-text</tt> maps any whitespace, including newlines, and there are Keywords pages for names starting with a digit). The remaining links now also go through <tt>nospace-text</tt> in [d61292cc5f]: the three <tt>#$here</tt> links of the tables of contents, the <tt>M$name</tt> standard option link and the <tt>#$manual(...-id-...)</tt> cross-reference. Their targets already used it, so for the current pages this makes no difference.
      
      In the HTML that the branch generates for Tcl and Tk there are no name/id or href values with whitespace and no links to missing anchors. The published 9.0.4 pages you checked were generated before this fix: the branch is not merged yet, and it is not in 9.0. The meta viewport is in branch [/timeline?r=man2html-meta-viewport|man2html-meta-viewport], for [7f6005a867].
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
  7. Ticket change [2a4775e22f] (rid 259809) by anonymous on 2026-10-21 16:26:38:

    1. icomment:
      I accept the both fix-points for version 9.1.0 - thank You, Serhiy!
      @Harald: Can they merged too?
      I will look on the remaining dl, dd, dt and ol fails, open a new ticket on finding a solution...
      
    2. login: "anonymous"
    3. mimetype: "text/plain"
    4. username: "Thomas [TWu]"
  8. Ticket change [a7a3c93087] (rid 259810) by serhiy.storchaka on 2026-10-21 17:17:16:

    1. icomment:
      The meta viewport is merged now, into trunk ([785fa0c704]), core-9-0-branch and core-8-6-branch.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"