groff-commit
[Top][All Lists]
Advanced

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

[groff] 09/21: [troff]: Make `pev` report numeric hyph mode.


From: G. Branden Robinson
Subject: [groff] 09/21: [troff]: Make `pev` report numeric hyph mode.
Date: Sat, 2 Mar 2024 01:25:01 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 82d142f55284613bbd16a65d31df5c993fd242d0
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Mar 1 19:24:08 2024 -0600

    [troff]: Make `pev` report numeric hyph mode.
    
    * src/roff/troff/env.cpp (environment::print_env): Report environment's
      numeric hyphenation mode, not just its meaning.
---
 ChangeLog              | 5 +++++
 src/roff/troff/env.cpp | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index df51f3bf9..d162956c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-03-01  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/roff/troff/env.cpp (environment::print_env): Report
+       environment's numeric hyphenation mode, not just its meaning.
+
 2024-03-01  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [troff]: Trivially refactor (hyphenation flags->mode).
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 0d7d8de07..5fa218353 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -3426,7 +3426,8 @@ void environment::print_env()
   if (hyphenation_mode & HYPHEN_NOT_FIRST_CHARS)
     hf += ", not first two chars";
   hf += '\0';
-  errprint("  hyphenation_mode: %1\n", hf.contents());
+  errprint("  hyphenation mode: %1 (%2)\n", hyphenation_mode,
+          hf.contents());
   errprint("  number of consecutive hyphenated lines: %1\n",
           hyphen_line_count);
   errprint("  maximum number of consecutive hyphenated lines: %1\n",



reply via email to

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