aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/roff/ti/basic-man.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-man.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-man.in')
-rw-r--r--regress/roff/ti/basic-man.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/regress/roff/ti/basic-man.in b/regress/roff/ti/basic-man.in
new file mode 100644
index 00000000..deb1542f
--- /dev/null
+++ b/regress/roff/ti/basic-man.in
@@ -0,0 +1,18 @@
+.TH TI-BASIC-MAN 1 "May 8, 2014" OpenBSD
+.SH NAME
+ti-basic-man \- temporary indentation in man(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.