gbranden pushed a commit to branch master
in repository groff.
commit 965de3c1a3d4417b05a15b1d0bdedb75d362123d
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Mar 1 22:23:31 2024 -0600
[troff]: `.hy` selects default hyphenation mode.
* src/roff/troff/env.cpp (hyphenate_request): If given no argument, set
hyphenation mode to the configured default.
---
ChangeLog | 5 +++++
src/roff/troff/env.cpp | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index a1c0fd730..efd2fbc2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-03-01 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/env.cpp (hyphenate_request): If given no
+ argument, set hyphenation mode to the configured default.
+
2024-03-01 G. Branden Robinson <[email protected]>
[troff]: Add new `hydefault` request.
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index aed0cfc5b..83661c64e 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -1739,7 +1739,7 @@ void hyphenate_request()
curenv->hyphenation_mode = n;
}
else
- curenv->hyphenation_mode = 1;
+ curenv->hyphenation_mode = curenv->hyphenation_mode_default;
skip_line();
}
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit