gbranden pushed a commit to branch master
in repository groff.
commit 5eadae81efa429b5930c1f2f1695079478bdc405
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Sep 24 14:38:28 2022 -0500
doc/groff.texi (Setting Registers): Fix example.
The two methods of setting a register were _not_ equivalent. The use of
\R on a text line formats a newline (in a context-dependent way). Use a
control character to prevent this. Explicitly perform interpolations to
illustrate the equivalence.
---
doc/groff.texi | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/doc/groff.texi b/doc/groff.texi
index 07ca5c415..daa1f36c8 100644
--- a/doc/groff.texi
+++ b/doc/groff.texi
@@ -7134,8 +7134,10 @@ Internals}.
@Example
.nr a (((17 + (3 * 4))) % 4)
-\R'a (((17 + (3 * 4))) % 4)'
- @result{} 1
+\n[a]
+.\R'a (((17 + (3 * 4))) % 4)'
+\n[a]
+ @result{} 1 1
@endExample
(Later, we will discuss additional forms of @code{nr} and @code{\R} that
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit