aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/roff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-14 17:51:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-14 17:51:15 +0000
commitd687586337f23b878d3678fc908d2c30b540a058 (patch)
tree4690c1992cd85292996a523727c3307ab8f10c45 /regress/roff
parent98b1f2affc51ab2505cc48390d8ea926eaac9e03 (diff)
downloadmandoc-d687586337f23b878d3678fc908d2c30b540a058.tar.gz
mandoc-d687586337f23b878d3678fc908d2c30b540a058.tar.zst
mandoc-d687586337f23b878d3678fc908d2c30b540a058.zip
improve rounding rules for scaling units
in horizontal orientation in the terminal formatter
Diffstat (limited to 'regress/roff')
-rw-r--r--regress/roff/esc/h.in2
-rw-r--r--regress/roff/esc/h.out_ascii1
-rw-r--r--regress/roff/esc/h.out_lint2
-rw-r--r--regress/roff/ta/basic-man.in3
-rw-r--r--regress/roff/ta/basic-man.out_ascii2
-rw-r--r--regress/roff/ti/basic-man.in4
6 files changed, 11 insertions, 3 deletions
diff --git a/regress/roff/esc/h.in b/regress/roff/esc/h.in
index 4bc1953e..56e4275c 100644
--- a/regress/roff/esc/h.in
+++ b/regress/roff/esc/h.in
@@ -7,6 +7,8 @@
.Sh DESCRIPTION
simple: >\h'0'<
.br
+rounding: >\h'0.16i'<
+.br
escape only: >\h'\w'\&'M'<
.br
escape at the end: >\h'0+\w'\&''<
diff --git a/regress/roff/esc/h.out_ascii b/regress/roff/esc/h.out_ascii
index 858dcf32..ae378a45 100644
--- a/regress/roff/esc/h.out_ascii
+++ b/regress/roff/esc/h.out_ascii
@@ -5,6 +5,7 @@ NNAAMMEE
DDEESSCCRRIIPPTTIIOONN
simple: ><
+ rounding: > <
escape only: ><
escape at the end: ><
escape at the beginning: ><
diff --git a/regress/roff/esc/h.out_lint b/regress/roff/esc/h.out_lint
index 6e2eb342..b7facfb1 100644
--- a/regress/roff/esc/h.out_lint
+++ b/regress/roff/esc/h.out_lint
@@ -1,2 +1,2 @@
-mandoc: h.in:18:21: WARNING: invalid escape sequence: \h-
+mandoc: h.in:20:21: WARNING: invalid escape sequence: \h-
mandoc: h.in:1:5: STYLE: Mdocdate missing: Dd May
diff --git a/regress/roff/ta/basic-man.in b/regress/roff/ta/basic-man.in
index f2f4641d..db0644a7 100644
--- a/regress/roff/ta/basic-man.in
+++ b/regress/roff/ta/basic-man.in
@@ -17,3 +17,6 @@ none:
default unit:
.ta 3 +4 12
1 2 3 4
+rounding:
+.ta 0.26i T 1c
+1 2 3 4 5 6 7 8 9
diff --git a/regress/roff/ta/basic-man.out_ascii b/regress/roff/ta/basic-man.out_ascii
index 37062245..659422f2 100644
--- a/regress/roff/ta/basic-man.out_ascii
+++ b/regress/roff/ta/basic-man.out_ascii
@@ -16,6 +16,8 @@ DDEESSCCRRIIPPTTIIOONN
1 2 3 4 5 6 7 8 9
default unit:
1 2 3 4
+ rounding:
+ 1 2 3 4 5 6 7 8 9
diff --git a/regress/roff/ti/basic-man.in b/regress/roff/ti/basic-man.in
index deb1542f..d4f00a01 100644
--- a/regress/roff/ti/basic-man.in
+++ b/regress/roff/ti/basic-man.in
@@ -3,14 +3,14 @@
ti-basic-man \- temporary indentation in man(7)
.SH DESCRIPTION
initial text
-.ti 10n
+.ti 0.96i
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
+.ti -0.26i
It is also possible to temporarily reduce the indentation,
but that will also last until the next line break only.
.ti -10n