[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 07/21: groff(1): Tweak REPL code example.
From: |
G. Branden Robinson |
Subject: |
[groff] 07/21: groff(1): Tweak REPL code example. |
Date: |
Sun, 6 Jun 2021 13:04:18 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 1fd2bdcdeb94c2e8e42d811215c7b419f31417c8
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Jun 5 16:07:31 2021 +1000
groff(1): Tweak REPL code example.
* Illustrate both parenthesized and unparenthesized arithmetic
expressions, showing the acceptability of whitespace in the former.
* Fix straggling apostrophe literals; replace them with \[aq].
---
src/roff/groff/groff.1.man | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/roff/groff/groff.1.man b/src/roff/groff/groff.1.man
index 7fe7360..cc9dc68 100644
--- a/src/roff/groff/groff.1.man
+++ b/src/roff/groff/groff.1.man
@@ -895,14 +895,14 @@ $ \c
.B \[rs]# This is a comment. Let\[aq]s define a register.
.B .nr a 1
.B \[rs]# Do integer arithmetic with operators evaluated left-to-right.
-.B .nr b (\[rs]n[a]+5/2)
+.B .nr b \[rs]n[a]+5/2
.B \[rs]# Let\[aq]s get the result on the standard error stream.
.B .tm \[rs]n[b]
3
.B \[rs]# We can see that the division rounded toward zero.
.B \[rs]# Now we\[aq]ll define a string.
.B .ds name Leslie\[rs]" This is another form of comment.
-.B .nr b (\[rs]n[a]+7/2)
+.B .nr b (\[rs]n[a] + 7/2)
.B \[rs]# Center the next two text input lines.
.B .ce 2
.B Hi, \[rs]*[name].
@@ -912,7 +912,8 @@ $ \c
.B .ie (\[rs]n[b] % 2) odd.
.B .el even.
.B \[rs]# This trick sets the page length to the current vertical
-.B \[rs]# position, so that blank lines don't spew when we're done.
+.B \[rs]# position, so that blank lines don\[aq]t spew when we\[aq]re \
+done.
.B .pl \[rs]n[nl]u
.I <Control-D>
Hi, Leslie.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 07/21: groff(1): Tweak REPL code example.,
G. Branden Robinson <=