bugGNU roff - Bugs: bug #61279, [man] section heading font...

 
 

bug #61279: [man] section heading font remapping can affect headers/footers

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Mon 04 Oct 2021 02:33:10 PM UTC
   
 
Category:  Macro man Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  Fixed
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  1.23.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 05 Oct 2021 12:08:44 PM UTC, comment #1: 


commit a7c10cf9bd71a2d55d1e943c01085d7c33b48453
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Tue Oct 5 12:19:46 2021 +1100

    [man]: Fix Savannah #61279.

    * tmac/an.tmac (SH, SS): Invoke `ne` request _before_ performing font
      remapping: any page-breaking decision will be taken before the
      remapping happens, and so won't be in effect across a page boundary,
      undesirably impacting header and footer text.

    Fixes <https://savannah.gnu.org/bugs/?61279>.

commit d02e369f5bfd887c60e345824b90dc81bfbeb888
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Tue Oct 5 12:11:04 2021 +1100

    Regression-test Savannah #61279.

    * tmac/tests/an_font-remapping-does-not-affect-titles.sh: Do it.
    * tmac/tmac.am (tmac_TESTS): Run test.

    Test fails at this commit.


G. Branden Robinson <gbranden>
Group administrator
Mon 04 Oct 2021 02:33:10 PM UTC, original submission:  

The font-remapping-for-(sub)section headings feature I added in May of this year led to remapping of italic fonts when they were used in header/footer text if the previous page ended at a (sub)section heading boundary that .ne-eded more vertical space than remained on the page.  The remapping was thus in effect for `tl` requests when it was not intended to be.

Reproducer:

INPUT='.TH \\fIfoo\\fP 1 2021-10-04 "groff test suite"
.SH Name
foo \\- a command with a very short name
.sp 50v
.SH "\\fIgroff\\fP integration"
A complicated situation.'

OUTPUT=$(echo "$INPUT" | "$groff" -Tascii -man -rcR=0)


G. Branden Robinson <gbranden>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-10-05 gbranden StatusIn Progress Fixed
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.23.0

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code