URL:
  <https://savannah.gnu.org/bugs/?64572>

                 Summary: [man] UR, MT with no link text misrender on PDF when
-rU1
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Sat 19 Aug 2023 11:08:17 PM UTC
                Category: Macro man
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 19 Aug 2023 11:08:17 PM UTC By: G. Branden Robinson <gbranden>
The bug #58950 wasn't as fixed as one would hope.

The default _groff_ 1.23.0 configuration is okay, but if you specify -rU1 and
format for PDF a man page that has a `UR`/`UE` call pair with no link text,
the URL is not visible as it should be.


$ cat EXPERIMENTS/no-link-text.man 
.TH foo 1 2023-08-19 "groff test suite"
.SH Name
foo \- frobnicate a bar
.SH Description
Here's a URL.
.UR http://example.com
.UE .
Report bugs to
.MT j...@example.com
.ME .
$ nroff -man EXPERIMENTS/no-link-text.man # looks OK
foo(1)                      General Commands Manual                    
foo(1)

Name
       foo - frobnicate a bar

Description
       Here’s a URL.  ⟨http://example.com⟩.  Report bugs to
⟨j...@example.com⟩.

groff test suite                  2023‐08‐19                           
foo(1)
$ nroff -rU1 -man EXPERIMENTS/no-link-text.man # looks OK
foo(1)                      General Commands Manual                    
foo(1)

Name
       foo - frobnicate a bar

Description
       Here’s a URL.  http://example.com.  Report bugs to j...@example.com.

groff test suite                  2023‐08‐19                           
foo(1)
$ groff -a -T pdf -man EXPERIMENTS/no-link-text.man # looks OK
<beginning of page>
x X ps:exec [/Dest /pdf:bm1 /View [/FitH -31000 u] /DEST pdfmark
x X ps:exec [/Dest /pdf:bm1 /Title (foo(1)) /Level 1 /OUT pdfmark
foo(1) General Commands Manual foo(1)
x X ps:exec [/Dest /pdf:bm2 /View [/FitH -67000 u] /DEST pdfmark
x X ps:exec [/Dest /pdf:bm2 /Title (Name) /Level 2 /OUT pdfmark
Name 
 foo <-> frobnicate a bar
x X ps:exec [/Dest /pdf:bm3 /View [/FitH -95800 u] /DEST pdfmark
x X ps:exec [/Dest /pdf:bm3 /Title (Description) /Level 2 /OUT pdfmark
Description 
 Here's a URL. <la>http://example.com<ra>. Report bugs to
<la>j...@example.com<ra>.
groff test suite 2023-08-19 1


But...


$ groff -rU1 -a -T pdf -man EXPERIMENTS/no-link-text.man # BAD
<beginning of page>
x X ps:exec [/Dest /pdf:bm1 /View [/FitH -31000 u] /DEST pdfmark
x X ps:exec [/Dest /pdf:bm1 /Title (foo(1)) /Level 1 /OUT pdfmark
foo(1) General Commands Manual foo(1)
x X ps:exec [/Dest /pdf:bm2 /View [/FitH -67000 u] /DEST pdfmark
x X ps:exec [/Dest /pdf:bm2 /Title (Name) /Level 2 /OUT pdfmark
Name 
 foo <-> frobnicate a bar
x X ps:exec [/Dest /pdf:bm3 /View [/FitH -95800 u] /DEST pdfmark
x X ps:exec [/Dest /pdf:bm3 /Title (Description) /Level 2 /OUT pdfmark
Description 
 Here's a URL. . Report bugs to .
groff test suite 2023-08-19 1









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64572>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to