gbranden pushed a commit to branch master
in repository groff.

commit 529b6d3a99ee0c43a925eb0f9acb7c85f3bdffdd
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed May 6 08:57:18 2026 -0500

    [troff]: Fix Savannah #68286.
    
    * src/roff/troff/env.cpp (temporary_indent_request): If given no
      arguments, cancel any temporary indentation existing in the
      environment.
    
    Fixes <https://savannah.gnu.org/bugs/?68286>.
---
 ChangeLog              | 8 ++++++++
 src/roff/troff/env.cpp | 3 +--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 509432e7c..91b05f0f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-05-06  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/env.cpp (temporary_indent_request): If given no
+       arguments, cancel any temporary indentation existing in the
+       environment.
+
+       Fixes <https://savannah.gnu.org/bugs/?68286>.
+
 2026-05-06  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/env.cpp: Trivially refactor.
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index c740ec6e2..86eb89ead 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -1700,8 +1700,7 @@ static void temporary_indent_request() // .ti
   if (was_invoked_with_regular_control_character)
     curenv->do_break();
   if (!has_arg())
-    warning(WARN_MISSING, "temporary indentation request expects"
-           " argument");
+    cancel_temporary_indentation();
   else {
     bool is_valid = true;
     if (curenv->get_centered_line_count() > 0) {

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to