groff-commit
[Top][All Lists]
Advanced

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

[groff] 16/23: [mdoc]: Fix Savannah #59738.


From: G. Branden Robinson
Subject: [groff] 16/23: [mdoc]: Fix Savannah #59738.
Date: Fri, 16 Sep 2022 13:07:42 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 354266268b9d96d0d0130c6d1a0677aca4b4ac47
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Sep 15 12:27:45 2022 -0500

    [mdoc]: Fix Savannah #59738.
    
    * tmac/doc.tmac (Lk): Process further macro arguments more like other
      macros do, calling `doc-print-recursive`.  This permits recognition of
      end-of-sentence punctuation in the argument list.
    
    Fixes <https://savannah.gnu.org/bugs/?59738>.
---
 ChangeLog     | 10 ++++++++++
 tmac/doc.tmac | 11 +++++------
 2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9a5131eae..49cc8b4cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2022-09-15  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [mdoc]: Fix Savannah #59738.
+
+       * tmac/doc.tmac (Lk): Process further macro arguments more like
+       other macros do, calling `doc-print-recursive`.  This permits
+       recognition of end-of-sentence punctuation in the argument list.
+
+       Fixes <https://savannah.gnu.org/bugs/?59738>.
+
 2022-09-15  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [mdoc]: Regression-test Savannah #59738.
diff --git a/tmac/doc.tmac b/tmac/doc.tmac
index 8838f4c49..bc3d4ca47 100644
--- a/tmac/doc.tmac
+++ b/tmac/doc.tmac
@@ -6755,13 +6755,12 @@
 .  nop \f[\n[doc-curr-font]]\c
 .
 .  \" Format trailing arguments, like punctuation, if any.
-.  \" XXX: This loses track of end-of-sentence state.
-.  while (\n[doc-arg-ptr] <= \n[doc-arg-count]) \{\
-.    nop \&\*[doc-arg\n[doc-arg-ptr]]\c
-.    nr doc-arg-ptr +1
+.  ie (\n[doc-arg-ptr] <= \n[doc-arg-count]) \
+.    doc-print-recursive
+.  el \{\
+.    nop \&
+.    doc-reset-args
 .  \}
-.  nop \&
-.  doc-reset-args
 ..
 .ec
 .



reply via email to

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