bugGNU roff - Bugs: bug #63163, [me] long footnote gets truncated

 
 

bug #63163: [me] long footnote gets truncated

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Wed 05 Oct 2022 08:35:29 PM UTC
   
 
Category:  Macro me Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 07 Oct 2022 07:32:24 AM UTC, comment #1: 

Not that this case should fail, but that strikes me as an unusual way to use .(f and .)f.  More typically, a document author will let -me place footnotes.  The macro package tries to keep (at least the start of) a footnote on the same page as the text that references it--but in order to do that, the author should place the .(f and .)f right after the referencing text, rather than waiting until where he thinks the bottom of the page will fall.

Indeed, moving the footnote block to right after the "long footnote" sentence in the example gives a correct and sane layout.  But of course, the footnote should also work correctly if the footnoted line is line 46.

Comment 6 over in bug #58447 shows another case where a -me footnote is truncated.  Both that case and this one appear to be -me trying to carry a footnote over to a final page, but never emitting that page.  The .ep macro, the usual solution for ejecting pending footnotes, is no help for these cases where the footnote has already begun.  (In the 58447 example, the lengthy footnote has already been carried over to subsequent pages which are emitted; it seems to be only the last that isn't.)

Dave <barx>
Group Member
Wed 05 Oct 2022 08:35:29 PM UTC, original submission:  

(Re-filing.  Looks like Savannah had a database hiccup.)

Affects groff 1.22.4.  Affects both PostScript and terminal output.

Input:


.lp
Here comes a long footnote.\**
.nf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.fi
.(f
\** Sed ut perspiciatis, unde omnis iste natus error sit voluptatem
accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab
illo inventore veritatis et quasi architecto beatae vitae dicta sunt,
explicabo.  Nemo enim ipsam voluptatem, quia voluptas sit, aspernatur
aut odit aut fugit, sed quia consequuntur magni dolores eos, qui ratione
voluptatem sequi nesciunt, neque porro quisquam est, qui dolorem ipsum,
quia dolor sit amet consectetur adipiscivelit, sed quia non-numquam eius
modi tempora incidunt, ut labore et dolore magnam aliquam quaerat
voluptatem.  Ut enim ad minima veniam, quis nostrum exercitationem ullam
corporis suscipitlaboriosam, nisi ut aliquid ex ea commodi consequatur?
Quis autem vel eum iure reprehenderit, qui inea voluptate velit esse,
quam nihil molestiae consequatur, vel illum, qui dolorem eum fugiat, quo
voluptas nulla pariatur?  At vero eos et accusamus et iusto odio
dignissimos ducimus, qui blanditiis praesentium voluptatum deleniti
atque corrupti, quos dolores et quas molestias excepturi sint, obcaecati
cupiditate non-provident, similique sunt in culpa, qui officia deserunt
mollitia animi, id est laborum et dolorum fuga.  Et harum quidem rerum
facilis est et expedita distinctio.  Nam libero tempore, cum soluta
nobis est eligendi optio, cumque nihil impedit, quo minus id, quod
maxime placeat, facere possimus, omnis voluptas assumenda est, omnis
dolor repellendus.  Temporibus autem quibusdam et aut officiis debitis
aut rerum necessitatibus saepe eveniet, ut et voluptates repudiandae
sint et molestiae non-recusandae.  Itaque earum rerum hic tenetur a
sapiente delectus, ut aut reiciendis voluptatibus maiores alias
consequatur aut perferendis doloribus asperiores repellat.
.)f


Output:


$ nroff -me EXPERIMENTS/long-footnote-gets-truncated.me | tail -n 14
45
46

____________________
   1  Sed  ut  perspiciatis, unde omnis iste natus error sit
voluptatem accusantium doloremque laudantium, totam rem ape‐
riam  eaque  ipsa, quae ab illo inventore veritatis et quasi
architecto beatae vitae dicta sunt,  explicabo.   Nemo  enim






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 barx (Posted a comment)
  • -email is unavailable- added by barx
  • -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 barx Carbon-Copy- Added barx

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code