bugGNU roff - Bugs: bug #53161, [mdoc] ".Bl -columns"...

 
 

bug #53161: [mdoc] ".Bl -columns" splits a long last column wrongly

Submitter:  Bjarni Ingi Gislason <bjarniig>
Submitted:  Wed 14 Feb 2018 11:57:07 PM UTC
   
 
Category:  Macro package mdoc Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  Confirmed
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 30 Mar 2023 02:35:49 PM UTC, comment #1: 

mandoc(1) oversets the line, too.


$ mandoc ATTIC/prof.mdoc
mantest(1)                  General Commands Manual                 mantest(1)

NAME
     mantest – Small script to test mdoc macros


     First sentence    Second sentence    Third sentence    Fourth sentence is longer than

Debian                         February 6, 2016                         Debian
$ mandoc -Tlint ATTIC/prof.mdoc
mandoc: ATTIC/prof.mdoc:2:5: STYLE: lower case character in document title: Dt mantest


As seen in the second command, it does not appear to think anything is wrong with the document apart from the page title.

G. Branden Robinson <gbranden>
Group administrator
Wed 14 Feb 2018 11:57:07 PM UTC, original submission:  

Subject: mdoc.tmac: ".Bl -columns" splits a long last column wrongly

  The original bug was seen in "file(1)").

  Example (name of file is "prof.mdoc"):

.Dd $Mdocdate: February 6 2016 $
.Dt mantest 1
.Os
.Sh NAME
.Nm mantest
.Nd Small script to test mdoc macros
.sp
.Bl -column "First sentence" "Second sentence" "Third sentence" "Fourth \
sentence is longer than"
.It First sentence Ta "Second sentence" Ta "Third sentence" Ta "Fourth \
sentence is longer than"
.El


  test-groff -mandoc -Tascii prof.mdoc

  Output is:

prof.mdoc:10: backtrace: string 'doc-str-dpr'
groff/build/tmac/doc.tmac:252: backtrace: macro 'doc-do-2'
groff/build/tmac/doc.tmac:2294: backtrace: macro 'Ta'
groff/build/tmac/doc.tmac:247: backtrace: macro 'doc-print-recursive'
groff/build/tmac/doc.tmac:264: backtrace: macro 'doc-do-2'
groff/build/tmac/doc.tmac:2294: backtrace: macro 'Ta'
groff/build/tmac/doc.tmac:247: backtrace: macro 'doc-print-recursive'
groff/build/tmac/doc.tmac:264: backtrace: macro 'doc-do-2'
groff/build/tmac/doc.tmac:2294: backtrace: macro 'Ta'
groff/build/tmac/doc.tmac:247: backtrace: macro 'doc-print-recursive'
groff/build/tmac/doc.tmac:264: backtrace: macro 'doc-print-recursive'
groff/build/tmac/doc.tmac:264: backtrace: macro 'doc-do-2'
groff/build/tmac/doc.tmac:2287: backtrace: macro 'doc-column-list'
groff/build/tmac/doc.tmac:2017: backtrace: macro 'It'
troff: prof.mdoc:11: warning [p 1, 1.2i]: can't break line
groff/build/tmac/doc.tmac:148: backtrace: macro 'doc-print-and-reset'
groff/build/tmac/doc.tmac:260: backtrace: macro 'doc-do-2'
groff/build/tmac/doc.tmac:2294: backtrace: macro 'Ta'
groff/build/tmac/doc.tmac:247: backtrace: macro 'doc-print-recursive'
groff/build/tmac/doc.tmac:264: backtrace: macro 'doc-do-2'
groff/build/tmac/doc.tmac:2294: backtrace: macro 'Ta'
groff/build/tmac/doc.tmac:247: backtrace: macro 'doc-print-recursive'
groff/build/tmac/doc.tmac:264: backtrace: macro 'doc-do-2'
groff/build/tmac/doc.tmac:2294: backtrace: macro 'Ta'
groff/build/tmac/doc.tmac:247: backtrace: macro 'doc-print-recursive'
groff/build/tmac/doc.tmac:264: backtrace: macro 'doc-print-recursive'
groff/build/tmac/doc.tmac:264: backtrace: macro 'doc-do-2'
groff/build/tmac/doc.tmac:2287: backtrace: macro 'doc-column-list'
groff/build/tmac/doc.tmac:2017: backtrace: macro 'It'
troff: prof.mdoc:11: warning [p 1, 1.3i]: can't break line

mantest(1)                BSD General Commands Manual               mantest(1)

NAME
     mantest -- Small script to test mdoc macros


     First sentence    Second sentence    Third sentence    Fourth sentence is
                                                                                              longer
                                                                                              than

BSD                            February 6, 2016                            BSD



Bjarni Ingi Gislason <bjarniig>

 

(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 (Updated the item)
  • -email is unavailable- added by schwarze (Updated the item)
  • -email is unavailable- added by bjarniig (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-03-30 gbranden Summarymdoc.tmac: &quot;.Bl -columns&quot; splits a long last column wrongly [mdoc] ".Bl -columns" splits a long last column wrongly
    2018-02-16 schwarze StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-8484.
    Corresponding source code