aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/roff/ti/basic-mdoc.in
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-05-08 15:34:54 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-05-08 15:34:54 +0000
commitaa8151b1157e8486bce7cb08deeb4c78df1d9669 (patch)
tree00a31b096cb9f968844ba4e0abd4f6a07037f6c9 /regress/roff/ti/basic-mdoc.in
parent396a6a4a456ccbca1eb8ea6ef724a14e28f9fc54 (diff)
downloadmandoc-aa8151b1157e8486bce7cb08deeb4c78df1d9669.tar.gz
mandoc-aa8151b1157e8486bce7cb08deeb4c78df1d9669.tar.zst
mandoc-aa8151b1157e8486bce7cb08deeb4c78df1d9669.zip
Basic implementation of the roff(7) .ti (temporary indent) request.
Needed by about four dozen ports (thanks to naddy@ for the research).
Diffstat (limited to 'regress/roff/ti/basic-mdoc.in')
-rw-r--r--regress/roff/ti/basic-mdoc.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/regress/roff/ti/basic-mdoc.in b/regress/roff/ti/basic-mdoc.in
new file mode 100644
index 00000000..0b165bc1
--- /dev/null
+++ b/regress/roff/ti/basic-mdoc.in
@@ -0,0 +1,21 @@
+.Dd May 8, 2017
+.Dt TI-BASIC-MDOC 1
+.Os OpenBSD
+.Sh NAME
+.Nm ti-basic-mdoc
+.Nd temporary indent in mdoc(7)
+.Sh DESCRIPTION
+initial text
+.ti 10n
+This text is indented.
+However, the indent is temporary,
+so as soon as the line wraps, it is gone.
+.ti +10n
+The temporary indent can be relative.
+All the same, it will expire in the usual way.
+.ti -3n
+It is also possible to temporarily reduce the indentation,
+but that will also last until the next line break only.
+.ti -10n
+Reducing by more than the current offset
+starts the next line at the physical left margin.