bugGNU troff - Bugs: bug #59738, mdoc: .Lk suppresses...


bug #59738: mdoc: .Lk suppresses end-of-sentence recognition

Submitted by:  G. Branden Robinson <gbranden>
Submitted on:  Sun 20 Dec 2020 07:48:34 AM UTC  
Category:  Macro mdoc Severity:  2 - Minor
Item Group:  Incorrect behaviour Status:  Postponed
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None

Add a New Comment (Rich Markup)

You are not logged in

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


Sat 26 Jun 2021 09:55:46 AM UTC, comment #2: 

We don't have a "blocked" status, so using "Postponed" for it.

G. Branden Robinson <gbranden>
Project Administrator
Mon 24 May 2021 02:29:35 AM UTC, comment #1: 

I think this is blocked on bug #60571; it's a general problem when macros usurp the production of sentence endings from the user.

As noted there, we need a language feature to expose and/or manipulate end-of-sentence detection more flexibly.

Leaving this bug open so that mdoc can apply whatever solution is eventually developed in the formatter.

G. Branden Robinson <gbranden>
Project Administrator
Sun 20 Dec 2020 07:48:34 AM UTC, original submission:  

Probably need Ingo's input for this one.

The attached example renders incorrectly in both mandoc(1) and groff -mdoc; trailing punctuation does not undergo end-of-sentence recognition.

The .Lk implementation is a bit complex, but I'm guessing the problem has to do with indiscriminate usage of

.nop \&

after the trailing punctuation.  I may not understand the use of the word "delimiter" in the macro definition--is it for the angle bracket macros (Ao, Ac) or does it refer to the terminating punctuation argument?  If the latter, I don't think it should be called a "delimiter".

G. Branden Robinson <gbranden>
Project Administrator


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

Attach Files:

Attached Files
file #50528:  sample.mdoc added by gbranden (380B - application/octet-stream)


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)

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

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-06-26 gbranden StatusNone => Postponed
    2020-12-20 gbranden Attached File- => Added sample.mdoc, #50528

    Back to the top

    Powered by Savane 3.7