[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 15/49: groff_mdoc(7): Repair incomplete examples.
From: |
G. Branden Robinson |
Subject: |
[groff] 15/49: groff_mdoc(7): Repair incomplete examples. |
Date: |
Sun, 6 Nov 2022 00:37:19 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit ea22f3b597d1d23534845ad25aee8698465deb22
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Nov 3 05:24:58 2022 -0500
groff_mdoc(7): Repair incomplete examples.
The `It` macro doesn't work outside of a `Bd`/`Ed` pair.
---
tmac/groff_mdoc.7.man | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tmac/groff_mdoc.7.man b/tmac/groff_mdoc.7.man
index ac8243cd6..686b66a56 100644
--- a/tmac/groff_mdoc.7.man
+++ b/tmac/groff_mdoc.7.man
@@ -2998,11 +2998,13 @@ Here is an example of
using the space mode macro to turn spacing off:
.
.Bd -literal -offset indent
+\&.Bd \-literal \-offset indent
\&.Sm off
\&.It Xo Sy I Ar operation
\&.No \een Ar count No \een
\&.Xc
\&.Sm on
+\&.Ed
.Ed
.Pp
.
@@ -3022,12 +3024,14 @@ produces
Another one:
.
.Bd -literal -offset indent
+\&.Bd \-literal \-offset indent
\&.Sm off
\&.It Cm S No / Ar old_pattern Xo
\&.No / Ar new_pattern
\&.No / Op Cm g
\&.Xc
\&.Sm on
+\&.Ed
.Ed
.Pp
.
@@ -3050,11 +3054,13 @@ Another example of
and enclosure macros: Test the value of a variable.
.
.Bd -literal -offset indent
+\&.Bd \-literal \-offset indent
\&.It Xo
\&.Ic .ifndef
\&.Oo \e&! Oc Ns Ar variable Oo
\&.Ar operator variable No ...
\&.Oc Xc
+\&.Ed
.Ed
.Pp
.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 15/49: groff_mdoc(7): Repair incomplete examples.,
G. Branden Robinson <=