bugGNU troff - Bugs: bug #43532, groff handles long .TH as...

 
 

bug #43532: groff handles long .TH as overlaping in header and footer

Submitted by:  Osamu Sayama <sayama>
Submitted on:  Wed 05 Nov 2014 06:09:18 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenPlanned Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 01 Dec 2014 08:51:38 AM UTC, comment #2:

Yes, I modified the patch to work with -rLT (and -rLL) by
using .lt and it worked ok for me.
I uploaded revised one as an-old.tmac-long-TH.patch2.

(file #32577)

Osamu Sayama <sayama>
Wed 05 Nov 2014 12:26:18 PM UTC, comment #1:

I noticed this patch fixes the space at 4.3 inches, but groff_man specifies that the title line length can be changed by setting -rLT (or -rLL) to a different width, so should not this patch take this into account. (NB I have not actually tested the patch yet).

Deri James <deri>
Project Member
Wed 05 Nov 2014 06:09:18 AM UTC, original submission:

For example, erlang has many long .TH man pages.
---
% grep '^.TH' /usr/share/man/man3erl/CosNotifyChannelAdmin_StructuredProxyPushSu
pplier.3erl
.TH CosNotifyChannelAdmin_StructuredProxyPushSupplier 3erl "cosNotification 1.1.
18" "Ericsson AB" "Erlang Module Definition"
---
If such a long .TH file is processed by groff, header and
fooder are displayed by overlapping.
---
% grep '^.TH' /usr/share/man/man3erl/CosNotifyChannelAdmin_StructuredProxyPushSu
pplier.3erl | gtroff -man -T ascii|grotty -c
CosNotifyChannelAdmin_SCosNotifyChannelAdmin_StructuredProxyPushSupplier(3erl)

Ericsson AB CosNotifyChannelAdmin_StructuredProxyPushSupplier(3erl)
---
I created a patch for an-old.tmac to be displayed by two lines
if it is long.
---
% grep '^.TH' /usr/share/man/man3erl/CosNotifyChannelAdmin_StructuredProxyPushSu
pplier.3erl | gtroff -man -T ascii|grotty -c
Erlang Module Definition
CosNotifyChannelAdmin_StructuredProxyPushSupplier(3erl)

Ericsson AB cosNotification 1.1.18
CosNotifyChannelAdmin_StructuredProxyPushSupplier(3erl)
---
It would be great if long .TH is handled by two lines like this.

Osamu Sayama <sayama>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #32577:  an-old.tmac-long-TH.patch2 added by sayama (4KiB - application/octet-stream)
file #32370:  an-old.tmac-long-TH.patch added by sayama (2KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by deri (Posted a comment)
  • -unavailable- added by sayama (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 01 Dec 2014 08:51:38 AM UTCsayamaAttached File-=>Added an-old.tmac-long-TH.patch2, #32577
    Wed 05 Nov 2014 06:09:18 AM UTCsayamaAttached File-=>Added an-old.tmac-long-TH.patch, #32370

    Back to the top


    Powered by Savane 3.1-cleanup1