Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 483a7031810a2ab5674d52f6f778da43b0d1a57b58103cbd2eea1d112c76eb21
Ticket: 8e811bc1f16273e93899b4a3be5d0d533370fb70
Wrong formatting of arguments in man page
User & Date: fvogel on 2022-12-28 20:43:18
Changes

  1. assignee changed to: "fvogel"
  2. icomment:
    I have found the issue.
    
    First, the indentation problem appears in .AP directives within a .SH "ARGUMENTS" section. It only shows up when the size of the text to display before the first tab is larger than some limit. This can be demonstrated by shortening line 248 in FileSystem.3 from ".AP Tcl_PackageInitProc **proc1Ptr out" to, say, ".AP Tcl_type **pPtr out" and rebuilding the html man pages.
    
    In principle one should be able to tune this limit using the .AS directive (see doc/man/macros): this would enlarge the area dedicated to displaying the .AP directive text, but it would only be a workaround. So let's forget about this possibility.
    
    Analyzing the code generating the html man pages in tools/tcltk-man2html-utils.tcl one can see that .AP directives are translated into .IP in turn creating Definition Term (<DT>) and Definition Description (<DD>) tags. Each <DT> is preceded by a <P> paragraph tag.
    
    What is wrong is that there is no closing tag </P>. The closing tag can be omitted in some cases (see the documentation about this, but it appears it's not the case when the <DT>... text wraps.
    
    Hence the fix [ee40100bc1].
    
  3. login: "fvogel"
  4. mimetype: "text/plain"
  5. resolution changed to: "Fixed"