source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: test the new allbox and wrapping features
@ 2017-06-12 22:50 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-06-12 22:50 UTC (permalink / raw)
  To: source

Log Message:
-----------
test the new allbox and wrapping features

Modified Files:
--------------
    mdocml/regress/tbl/data:
        Makefile
    mdocml/regress/tbl/opt:
        box.in
        box.out_ascii

Added Files:
-----------
    mdocml/regress/tbl/data:
        block_wrap.in
        block_wrap.out_ascii

Revision Data
-------------
--- /dev/null
+++ regress/tbl/data/block_wrap.in
@@ -0,0 +1,31 @@
+.Dd June 12, 2017
+.Dt TBL-DATA-BLOCK_WRAP 1
+.Os OpenBSD
+.Sh NAME
+.Nm tbl-data-block_wrap
+.Nd line wrapping in text blocks
+.Sh DESCRIPTION
+initial text
+.TS
+allbox tab(:);
+l l.
+T{
+This is a very long sentence.
+T}:short
+short:T{
+This is an even longer sentence.
+T}
+.TE
+.Pp
+.TS
+allbox tab(:);
+lw10 lw10.
+T{
+This is a very long sentence.
+T}:short
+short:T{
+This is an even longer sentence.
+T}
+.TE
+.Pp
+final text
Index: Makefile
===================================================================
RCS file: /home/cvs/mdocml/mdocml/regress/tbl/data/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lregress/tbl/data/Makefile -Lregress/tbl/data/Makefile -u -p -r1.1 -r1.2
--- regress/tbl/data/Makefile
+++ regress/tbl/data/Makefile
@@ -1,6 +1,6 @@
 # $OpenBSD: Makefile,v 1.1.1.1 2015/01/29 23:24:24 schwarze Exp $
 
-REGRESS_TARGETS	 = blankline block_unclosed empty
+REGRESS_TARGETS	 = blankline block_unclosed block_wrap empty
 LINT_TARGETS	 = block_unclosed empty
 
 # groff-1.22.3 defect:
--- /dev/null
+++ regress/tbl/data/block_wrap.out_ascii
@@ -0,0 +1,27 @@
+TBL-DATA-BLOCK_WRAP(1)      General Commands Manual     TBL-DATA-BLOCK_WRAP(1)
+
+N\bNA\bAM\bME\bE
+     t\btb\bbl\bl-\b-d\bda\bat\bta\ba-\b-b\bbl\blo\boc\bck\bk_\b_w\bwr\bra\bap\bp - line wrapping in text blocks
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+     initial text
+     +--------------------+------------------------+
+     |This is a very long | short                  |
+     |sentence.           |                        |
+     +--------------------+------------------------+
+     |short               | This is an even longer |
+     |                    | sentence.              |
+     +--------------------+------------------------+
+     +-----------+------------+
+     |This is a  | short      |
+     |very long  |            |
+     |sentence.  |            |
+     +-----------+------------+
+     |short      | This is an |
+     |           | even       |
+     |           | longer     |
+     |           | sentence.  |
+     +-----------+------------+
+     final text
+
+OpenBSD                          June 12, 2017                         OpenBSD
Index: box.in
===================================================================
RCS file: /home/cvs/mdocml/mdocml/regress/tbl/opt/box.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lregress/tbl/opt/box.in -Lregress/tbl/opt/box.in -u -p -r1.1 -r1.2
--- regress/tbl/opt/box.in
+++ regress/tbl/opt/box.in
@@ -18,6 +18,14 @@ a:b
 c:d
 .TE
 .sp
+allbox:
+.TS
+tab(:) allbox;
+l l.
+a:b
+c:d
+.TE
+.sp
 manual boxing:
 .TS
 tab(:);
@@ -36,4 +44,15 @@ tab(:) box;
 a:b
 _
 c:d
+_
+.TE
+.sp
+allbox and manual boxing:
+.TS
+tab(:) allbox;
+||l||l||.
+a:b
+_
+c:d
+_
 .TE
Index: box.out_ascii
===================================================================
RCS file: /home/cvs/mdocml/mdocml/regress/tbl/opt/box.out_ascii,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lregress/tbl/opt/box.out_ascii -Lregress/tbl/opt/box.out_ascii -u -p -r1.1 -r1.2
--- regress/tbl/opt/box.out_ascii
+++ regress/tbl/opt/box.out_ascii
@@ -17,6 +17,13 @@ D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
        |a   b |
        |c   d |
        +------+
+       allbox:
+
+       +--+---+
+       |a | b |
+       +--+---+
+       |c | d |
+       +--+---+
        manual boxing:
 
        +--++--+
@@ -31,6 +38,16 @@ D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
        |a ||b |
        +--++--+
        |c ||d |
+       +--++--+
+       +--++--+
+       allbox and manual boxing:
+
+       +--++--+
+       |a ||b |
+       +--++--+
+       +--++--+
+       |c ||d |
+       +--++--+
        +--++--+
 
 
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-12 22:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-12 22:50 mdocml: test the new allbox and wrapping features schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).