bugGNU roff - Bugs: bug #63289, [mdoc] .Bd -unfilled lines run...

 
 

bug #63289: [mdoc] .Bd -unfilled lines run together when .Sm and .No are both also in effect

Submitter:  None
Submitted:  Sat 29 Oct 2022 06:31:13 PM UTC
   
 
Category:  Macro mdoc 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
   

Tue 19 Mar 2024 09:33:14 AM UTC, comment #1: 

original submission:

> line1 and line2 are run together in output of GNU "nroff -mdoc".


and also in Heirloom troff, FWIW.  There are a few rendering differences between Heirloom and GNU, but identical to both is that they emit

      line1line2
      line3


Dave <barx>
Group Member
Sat 29 Oct 2022 06:31:13 PM UTC, original submission:  

I noticed incorrect formatting of the URL examples in OpenBSD autoinstall(8) man page when rendered with GNU man / nroff
(version 1.22.4, Archlinux package).[1]

I was able to cut it down to the following minimal reproducer:

.Dd bug
.Dt TEST 7
.Os
.Sh NAME
.Nm test
.Nd illustration of mdoc .Bd macro
.Sm off
.Bd -unfilled
.No line1
line2
line3
.Ed

line1 and line2 are run together in output of GNU "nroff -mdoc".

Removing either the .Sm or the .No macro makes GNU troff produce the (in my understanding, and matching OpenBSD mandoc) correct rendering with all three lines on separate lines.

[1]
Passage starting on line 99:
https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/share/man/man8/autoinstall.8?annotate=1.25

Anonymous

 

(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 gbranden (Updated 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-11-02 gbranden Summary.Bd -unfilled lines run together when .Sm and .No are both also in effect [mdoc] .Bd -unfilled lines run together when .Sm and .No are both also in effect

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code