aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/roff
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
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')
-rw-r--r--regress/roff/Makefile2
-rw-r--r--regress/roff/ti/Makefile5
-rw-r--r--regress/roff/ti/basic-man.in18
-rw-r--r--regress/roff/ti/basic-man.out_ascii21
-rw-r--r--regress/roff/ti/basic-mdoc.in21
-rw-r--r--regress/roff/ti/basic-mdoc.out_ascii17
6 files changed, 83 insertions, 1 deletions
diff --git a/regress/roff/Makefile b/regress/roff/Makefile
index c97b99b1..0a464197 100644
--- a/regress/roff/Makefile
+++ b/regress/roff/Makefile
@@ -1,7 +1,7 @@
# $OpenBSD: Makefile,v 1.20 2015/02/06 16:05:51 schwarze Exp $
SUBDIR = args cond esc scale string
-SUBDIR += br cc de ds ft ig it ll na nr ps rm sp ta tr
+SUBDIR += br cc de ds ft ig it ll na nr ps rm sp ta ti tr
.include "../Makefile.sub"
.include <bsd.subdir.mk>
diff --git a/regress/roff/ti/Makefile b/regress/roff/ti/Makefile
new file mode 100644
index 00000000..4ac4cde0
--- /dev/null
+++ b/regress/roff/ti/Makefile
@@ -0,0 +1,5 @@
+# $OpenBSD: Makefile,v 1.1 2017/05/07 17:30:58 schwarze Exp $
+
+REGRESS_TARGETS = basic-mdoc basic-man
+
+.include <bsd.regress.mk>
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.
diff --git a/regress/roff/ti/basic-man.out_ascii b/regress/roff/ti/basic-man.out_ascii
new file mode 100644
index 00000000..acc53f45
--- /dev/null
+++ b/regress/roff/ti/basic-man.out_ascii
@@ -0,0 +1,21 @@
+TI-BASIC-MAN(1) General Commands Manual TI-BASIC-MAN(1)
+
+
+
+NNAAMMEE
+ ti-basic-man - temporary indentation in man(7)
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text
+ This text is indented. However, the indent is temporary, so as soon
+ as the line wraps, it is gone.
+ The temporary indent can be relative. All the same, it will
+ expire in the usual way.
+ It is also possible to temporarily reduce the indentation, but that will
+ also last until the next line break only.
+Reducing by more than the current offset starts the next line at the physical
+ left margin.
+
+
+
+OpenBSD May 8, 2014 TI-BASIC-MAN(1)
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.
diff --git a/regress/roff/ti/basic-mdoc.out_ascii b/regress/roff/ti/basic-mdoc.out_ascii
new file mode 100644
index 00000000..a115b02d
--- /dev/null
+++ b/regress/roff/ti/basic-mdoc.out_ascii
@@ -0,0 +1,17 @@
+TI-BASIC-MDOC(1) General Commands Manual TI-BASIC-MDOC(1)
+
+NNAAMMEE
+ ttii--bbaassiicc--mmddoocc - temporary indent in mdoc(7)
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text
+ This text is indented. However, the indent is temporary, so as soon
+ as the line wraps, it is gone.
+ The temporary indent can be relative. All the same, it will
+ expire in the usual way.
+ It is also possible to temporarily reduce the indentation, but that will
+ also last until the next line break only.
+Reducing by more than the current offset starts the next line at the physical
+ left margin.
+
+OpenBSD May 8, 2017 OpenBSD