[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 33/49: doc/groff.texi (Setting Registers): Fix example.
From: |
G. Branden Robinson |
Subject: |
[groff] 33/49: doc/groff.texi (Setting Registers): Fix example. |
Date: |
Sun, 25 Sep 2022 17:02:59 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 5eadae81efa429b5930c1f2f1695079478bdc405
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 33/49: doc/groff.texi (Setting Registers): Fix example.,
G. Branden Robinson <=