diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2022-08-16 18:06:53 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2022-08-16 18:06:53 +0000 |
commit | 308f48ac8f031d86680d2d4ba4f2b294a21364ba (patch) | |
tree | 7d7c916ef3d5a36e497a94f28376391b052734e0 | |
parent | d8104d3d6142994295fe4f0bbaede867bd95e455 (diff) | |
download | mandoc-308f48ac8f031d86680d2d4ba4f2b294a21364ba.tar.gz |
New tests of tabs in fill mode, in particular
when multiple input or output lines are involved.
-rw-r--r-- | regress/char/space/Makefile | 4 | ||||
-rw-r--r-- | regress/char/space/tab-filled.in | 81 | ||||
-rw-r--r-- | regress/char/space/tab-filled.out_ascii | 57 |
3 files changed, 140 insertions, 2 deletions
diff --git a/regress/char/space/Makefile b/regress/char/space/Makefile index 50c81c4a..d98afc4f 100644 --- a/regress/char/space/Makefile +++ b/regress/char/space/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.12 2016/12/07 23:27:42 schwarze Exp $ +# $OpenBSD: Makefile,v 1.14 2022/08/16 18:04:04 schwarze Exp $ REGRESS_TARGETS = leading-mdoc leading-man multiple trailing-mdoc zerowidth REGRESS_TARGETS += eos eos-man break nobreak -REGRESS_TARGETS += tab tab-man esct-mdoc esct-man +REGRESS_TARGETS += tab tab-filled tab-man esct-mdoc esct-man REGRESS_TARGETS += invalid UTF8_TARGETS = zerowidth diff --git a/regress/char/space/tab-filled.in b/regress/char/space/tab-filled.in new file mode 100644 index 00000000..2c4af1b4 --- /dev/null +++ b/regress/char/space/tab-filled.in @@ -0,0 +1,81 @@ +.\" $OpenBSD: tab-filled.in,v 1.1 2022/08/16 18:04:04 schwarze Exp $ +.TH SPACE-TAB-FILLED 1 "August 16, 2022" +.SH NAME +SPACE-TAB-FILLED \- tab characters in fill mode +.SH DESCRIPTION +.SS Tabs are relative to the beginning of the current input line. +one two +.br +\&\c +\& t +.br +\& +\& t +.br +a +1 t +.br +a +22 t +.br +a +333 t +.br +a +4444 t +.br +a +55555 t +.br +ab +1 t +.br +ab +22 t +.br +ab +333 t +.br +ab +4444 t +.br +ab +55555 t +.SS Tab measurement continues onto the next output line. +Using a line length of 5n=12n-7n and tab positions of 7n and 9n: +.br +.ll 12n +.ta 7n 9n +a 1 t +.br +a 22 t +.br +a 333 t +.br +a 4444 t +.br +a 55555 t +.br +ab 1 t +.br +ab 22 t +.br +ab 333 t +.br +ab 4444 t +.br +abc 1 t +.br +abc 22 t +.br +abc 333 t +.br +adcd 1 t +.br +abcd 22 t +.br +abcde 1 t +.br +abcdef 1 t +.br +.ll diff --git a/regress/char/space/tab-filled.out_ascii b/regress/char/space/tab-filled.out_ascii new file mode 100644 index 00000000..4f4231da --- /dev/null +++ b/regress/char/space/tab-filled.out_ascii @@ -0,0 +1,57 @@ +SPACE-TAB-FILLED(1) General Commands Manual SPACE-TAB-FILLED(1) + +NNAAMMEE + SPACE-TAB-FILLED - tab characters in fill mode + +DDEESSCCRRIIPPTTIIOONN + TTaabbss aarree rreellaattiivvee ttoo tthhee bbeeggiinnnniinngg ooff tthhee ccuurrrreenntt iinnppuutt lliinnee.. + one two + t + t + a 1 t + a 22 t + a 333 t + a 4444 t + a 55555 t + ab 1 t + ab 22 t + ab 333 t + ab 4444 t + ab 55555 t + + TTaabb mmeeaassuurreemmeenntt ccoonnttiinnuueess oonnttoo tthhee nneexxtt oouuttppuutt lliinnee.. + Using a line length of 5n=12n-7n and tab positions of 7n and 9n: + a + 1 t + a + 22 t + a + 333 t + a + 4444 t + a + 55555 t + ab + 1 t + ab + 22 t + ab + 333 t + ab + 4444 t + abc + 1 t + abc + 22 t + abc + 333 t + adcd + 1 t + abcd + 22 t + abcde + 1 t + abcdef + 1 t + +OpenBSD August 16, 2022 SPACE-TAB-FILLED(1) |