bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #63500] [man, mdoc] doesn't respect unset 'C' register when switchi


From: G. Branden Robinson
Subject: [bug #63500] [man, mdoc] doesn't respect unset 'C' register when switching packages and continuous rendering off
Date: Mon, 12 Dec 2022 19:30:52 -0500 (EST)

Update of bug #63500 (project groff):

                  Status:             In Progress => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:


commit 478494e32112aabaa04f8314b5305c7bf6ea1689
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Mon Dec 12 10:31:19 2022 -0600

    [man, mdoc]: Fix Savannah #63500.
    
    Support use of `P` (initial page number) register when batch rendering,
    regardless of switching macro packages between man(7) and mdoc(7) or
    setting of `C` (continuous numbering) register.  (`P` without `C` means
    "start numbering each rendered document at \n[P]".)
    
    * tmac/an.tmac (an-end): Call `an*break-page-with-new-number` instead of
      invoking `bp`.
    
      (an*break-page-with-new-number): If `P` is set and `C` is not, use
      value of `P` as the next page number.
    
      (TH): If `C` register is set, remove `P` register after ending a
      previous document.
    
      (initialization): If `P` is set, assign the page number using the `pn`
      request if the transition to the first formatted page has not yet
      occurred; otherwise update page number register `%` directly.  Also
      ignore it with diagnostic if `ps4html` register (for grohtml's
      internal use) is set.   Add explanatory comment.
    
    * tmac/mdoc/doc-common (Dd): If `C` register is set, remove `P` register
      after ending a previous document.
    
      (doc-end-macro): Call `doc-break-page-with-new-number` instead of
      invoking `bp`.
    
      (doc-break-page-with-new-number): If `P` is set and `C` is not, use
      value of `P` as the next page number.
    
    * tmac/doc.tmac (initialization): If `P` is set, assign the page number
      using the `pn` request if the transition to the first formatted page
      has not yet occurred; otherwise update page number register `%`
      directly.  Also ignore it with diagnostic if `ps4html` register (for
      grohtml's internal use) is set.  Add explanatory comment.
    
    Fixes <https://savannah.gnu.org/bugs/?63500>.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63500>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]