gbranden pushed a commit to branch master
in repository groff.

commit bfa14e8894d5a6dbb18f9d0dd5d8490767f4c336
Author: G. Branden Robinson <g.branden.robin...@gmail.com>
AuthorDate: Sat Aug 2 05:51:20 2025 -0500

    [mdoc]: Fix Savannah #67385 (degenerate doc mgmt).
    
    * tmac/doc.tmac ([initialization]): Configure end-of-input macro
      unconditionally, even on degenerate inputs that never call `Dd`.
      This prevents an insane page length from being used when continuous
      rendering is enabled.
    
    * tmac/mdoc/doc-common (Dd): Stop doing so here.
    
    Fixes <https://savannah.gnu.org/bugs/?67385>.  Continues commit
    d8cd70f3a8c, 18 May.  Discovered in conversation with Ingo Schwarze.
---
 ChangeLog            | 12 ++++++++++++
 tmac/doc.tmac        |  1 +
 tmac/mdoc/doc-common |  2 --
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7dd4d0f50..0fd4190c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2025-08-02  G. Branden Robinson <g.branden.robin...@gmail.com>
+
+       * tmac/doc.tmac ([initialization]): Configure end-of-input macro
+       unconditionally, even on degenerate inputs that never call `Dd`.
+       This prevents an insane page length from being used when
+       continuous rendering is enabled.
+       * tmac/mdoc/doc-common (Dd): Stop doing so here.
+
+       Fixes <https://savannah.gnu.org/bugs/?67385>.  Continues commit
+       d8cd70f3a8c, 18 May.  Discovered in conversation with Ingo
+       Schwarze.
+
 2025-08-02  G. Branden Robinson <g.branden.robin...@gmail.com>
 
        * tmac/tests/an_degenerate-input-uses-sane-page-length.sh:
diff --git a/tmac/doc.tmac b/tmac/doc.tmac
index 7b97bf8d7..20ccd45e4 100644
--- a/tmac/doc.tmac
+++ b/tmac/doc.tmac
@@ -7166,6 +7166,7 @@ arguments
 .
 .
 .rn em e@
+.e@ doc-end-macro
 .
 .eo
 .de em
diff --git a/tmac/mdoc/doc-common b/tmac/mdoc/doc-common
index d7e38f29c..a6d99e1df 100644
--- a/tmac/mdoc/doc-common
+++ b/tmac/mdoc/doc-common
@@ -271,8 +271,6 @@
 .    wh (\n[doc-footer-location]u - .5i) doc-break-body-text
 .    rr doc-footer-location
 .  \}
-.
-.  e@ doc-end-macro
 ..
 .ec
 .

_______________________________________________
groff-commit mailing list
groff-commit@gnu.org
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to