bugGNU troff - Bugs: bug #63159, [ms] bracketing a section heading...

 
 

bug #63159: [ms] bracketing a section heading with a keep can record wrong page # for TOC

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Wed 05 Oct 2022 06:47:20 AM UTC
 
Category:  Macro ms Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  Postponed
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Wed 05 Oct 2022 06:47:20 AM UTC, original submission:  

I don't have a minimal reproducer yet, but encountered this issue while working on doc/ms.ms.

I'm attaching the current version the file from my working copy.  Here is the relevant portion.

Documents that need to determine whether they are being formatted with
.I "groff ms"
or another implementation should test this register.
.
.
.\" XXX: We can't use a keep here because the wrong page number will be
.\" recorded in the table of contents.
.KS
.NH 2
Unix Version\~7
.BI ms
macros not implemented by
.BI "groff ms"
.XS
        Unix Version 7
.I ms
macros not implemented by
.I "groff ms"
.XE
.LP
Several macros described in the Unix Version\~7
.I ms
documentation are unimplemented by
.I "groff ms"
because they are specific to the requirements of documents produced
internally by Bell Laboratories,
some of which also require a glyph for the Bell System logo that
.I groff
does not support.
...
For informal purposes,
a simple definition of
.CW UX
should maintain the readability of the document's substance.
.
.
.TS
box center;
lf(CR).
\&.rm UX
\&.ds UX Unix\[rs]"
.TE
.KE

Thanks to the keep, the section doesn't start until page 24, but the TOC records it as occurring on page 23.

Also affects groff 1.22.4.  Likely quite old.

Punting past 1.23.

G. Branden Robinson <gbranden>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #53794:  ms.ms added by gbranden (70KiB - text/x-troff-ms)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-10-05 gbranden Attached File- Added ms.ms, #53794

    Back to the top

    Powered by Savane 3.9