bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #66587] commit f865d4ac91 broke sequencing of 'x X' commands in gro


From: G. Branden Robinson
Subject: [bug #66587] commit f865d4ac91 broke sequencing of 'x X' commands in grout stream
Date: Thu, 19 Dec 2024 14:57:35 -0500 (EST)

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

                 Summary: commit f865d4ac91 broke sequencing of 'x X' commands
in grout stream
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Thu 19 Dec 2024 07:57:32 PM UTC
                Category: Core
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: In Progress
                 Privacy: Public
             Assigned to: gbranden
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 19 Dec 2024 07:57:32 PM UTC By: G. Branden Robinson <gbranden>
[https://lists.gnu.org/archive/html/groff/2024-12/msg00085.html Observed by
Peter Schaffter.]

See the thread for root-cause analysis.

Here's the meat of the regression test script.


input='.
.sp 6P-1v
.
.nr img-w 25p
.nr img-d 22p
.
.di img-div
.ev img-div
.nf
\X@pdf: pdfpic artifacts/GNU_head_small.pdf@
.ev
.di
.
.char \[img] \*[img-div]
.ds gnu \v@-\n[img-d]u@\[img]\h@\n[img-w]u@
.
.nop A GNU head \*[gnu] image.
.'

output=$(printf "%s\n" "$input" | "$groff" -T pdf -Z)
echo "$output"

# We should observe a horizontal motion after the word "head" and before
# the device extension command.
stream=$(echo "$output" | tr '\n' ' ')
echo $stream | grep -Eq 't *head +w *h *2500 +V *62000 +x * X *pdf:'









    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]