From f7e2f01b2993cc63491f8e56d3db6f1df3be8bb9 Mon Sep 17 00:00:00 2001
From: Ingo Schwarze <schwarze@openbsd.org>
Date: Tue, 27 Jun 2017 19:51:48 +0000
Subject: [PATCH] test inter-column spacing

---
 regress/tbl/mod/Makefile          |  2 +-
 regress/tbl/mod/spacing.in        | 14 ++++++++++++++
 regress/tbl/mod/spacing.out_ascii | 18 ++++++++++++++++++
 3 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 regress/tbl/mod/spacing.in
 create mode 100644 regress/tbl/mod/spacing.out_ascii

diff --git a/regress/tbl/mod/Makefile b/regress/tbl/mod/Makefile
index 09f98bf1..96547d64 100644
--- a/regress/tbl/mod/Makefile
+++ b/regress/tbl/mod/Makefile
@@ -1,6 +1,6 @@
 # $OpenBSD: Makefile,v 1.2 2015/02/10 11:02:19 schwarze Exp $
 
-REGRESS_TARGETS	 = badfont expand expand-toowide font misalign width
+REGRESS_TARGETS	 = badfont expand expand-toowide font misalign spacing width
 LINT_TARGETS	 = badfont font
 
 # groff-1.22.3 defects:
diff --git a/regress/tbl/mod/spacing.in b/regress/tbl/mod/spacing.in
new file mode 100644
index 00000000..1928d9a2
--- /dev/null
+++ b/regress/tbl/mod/spacing.in
@@ -0,0 +1,14 @@
+.TH TBL-MOD-SPACING 1 "June 27, 2017" OpenBSD
+.SH NAME
+tbl-mod-spacing \- spacing modifier in table layout
+.SH DESCRIPTION
+normal text
+.TS
+box tab(:);
+l0 l1 |  l2 |  l3 |  l4 |  l5 |  l6 |  l7 |  l8
+l0 l1    l2    l3    l4    l5    l6    l7    l8
+l0 l1 |  l2 || l3 || l4    l5 || l6 |  l7 || l8.
+a:b:c:d:e:f:g:h:i
+a:b:c:d:e:f:g:h:i
+a:b:c:d:e:f:g:h:i
+.TE
diff --git a/regress/tbl/mod/spacing.out_ascii b/regress/tbl/mod/spacing.out_ascii
new file mode 100644
index 00000000..ea4d396b
--- /dev/null
+++ b/regress/tbl/mod/spacing.out_ascii
@@ -0,0 +1,18 @@
+TBL-MOD-SPACING(1)          General Commands Manual         TBL-MOD-SPACING(1)
+
+
+
+NNAAMMEE
+       tbl-mod-spacing - spacing modifier in table layout
+
+DDEESSCCRRIIPPTTIIOONN
+       normal text
+
+       +--+--+--+----+----+------+------+-----+
+       |ab|c |d | e  | f  |  g   |  h   |   i |
+       |ab|c |d ||e    f  || g   |  h   ||  i |
+       |ab|c |d ||e    f  || g   |  h   ||  i |
+       +--+--+--++--------++-----+------++----+
+
+
+OpenBSD                          June 27, 2017              TBL-MOD-SPACING(1)
-- 
2.47.1