pandoc/test/tables.ms
John MacFarlane f48960b75f Move common groff functions to Text.Pandoc.Writers.Groff
(unexported module).  These are used in both the man and ms
writers.

Moved groffEscape out of Text.Pandoc.Writers.Shared [cancels earlier
API change from adding it, which was after last release].

This fixes strong/code combination on man (should be `\f[CB]` not
`\f[BC]`), mentioned in #4973.

Updated tests.

Closes #4975.
2018-10-17 17:26:37 -07:00

267 lines
2 KiB
Text

.LP
Simple table with caption:
.PP
Demonstration of simple table syntax.
.TS
delim(@@) tab( );
r l c l.
T{
Right
T} T{
Left
T} T{
Center
T} T{
Default
T}
_
T{
12
T} T{
12
T} T{
12
T} T{
12
T}
T{
123
T} T{
123
T} T{
123
T} T{
123
T}
T{
1
T} T{
1
T} T{
1
T} T{
1
T}
.TE
.LP
Simple table without caption:
.PP
.TS
delim(@@) tab( );
r l c l.
T{
Right
T} T{
Left
T} T{
Center
T} T{
Default
T}
_
T{
12
T} T{
12
T} T{
12
T} T{
12
T}
T{
123
T} T{
123
T} T{
123
T} T{
123
T}
T{
1
T} T{
1
T} T{
1
T} T{
1
T}
.TE
.LP
Simple table indented two spaces:
.PP
Demonstration of simple table syntax.
.TS
delim(@@) tab( );
r l c l.
T{
Right
T} T{
Left
T} T{
Center
T} T{
Default
T}
_
T{
12
T} T{
12
T} T{
12
T} T{
12
T}
T{
123
T} T{
123
T} T{
123
T} T{
123
T}
T{
1
T} T{
1
T} T{
1
T} T{
1
T}
.TE
.LP
Multiline table with caption:
.PP
Here\[cq]s the caption. It may span multiple lines.
.TS
delim(@@) tab( );
cw(10.5n) lw(9.6n) rw(11.4n) lw(24.5n).
T{
Centered Header
T} T{
Left Aligned
T} T{
Right Aligned
T} T{
Default aligned
T}
_
T{
First
T} T{
row
T} T{
12.0
T} T{
Example of a row that spans multiple lines.
T}
T{
Second
T} T{
row
T} T{
5.0
T} T{
Here\[cq]s another one.
Note the blank line between rows.
T}
.TE
.LP
Multiline table without caption:
.PP
.TS
delim(@@) tab( );
cw(10.5n) lw(9.6n) rw(11.4n) lw(24.5n).
T{
Centered Header
T} T{
Left Aligned
T} T{
Right Aligned
T} T{
Default aligned
T}
_
T{
First
T} T{
row
T} T{
12.0
T} T{
Example of a row that spans multiple lines.
T}
T{
Second
T} T{
row
T} T{
5.0
T} T{
Here\[cq]s another one.
Note the blank line between rows.
T}
.TE
.LP
Table without column headers:
.PP
.TS
delim(@@) tab( );
r l c r.
T{
12
T} T{
12
T} T{
12
T} T{
12
T}
T{
123
T} T{
123
T} T{
123
T} T{
123
T}
T{
1
T} T{
1
T} T{
1
T} T{
1
T}
.TE
.LP
Multiline table without column headers:
.PP
.TS
delim(@@) tab( );
cw(10.5n) lw(9.6n) rw(11.4n) lw(24.5n).
T{
First
T} T{
row
T} T{
12.0
T} T{
Example of a row that spans multiple lines.
T}
T{
Second
T} T{
row
T} T{
5.0
T} T{
Here\[cq]s another one.
Note the blank line between rows.
T}
.TE