Ms writer: handle tables with multiple paragraphs.

Previously they overflowed the table cell width.
We now set line lengths per-cell and restore them
after the table has been written.

Closes #7288.
This commit is contained in:
John MacFarlane
2021-05-20 17:12:38 -07:00
parent bb11f5fb86
commit d7b5def287
3 changed files with 92 additions and 6 deletions
+40
View File
@@ -0,0 +1,40 @@
```
% pandoc -f rst -t ms
.. list-table::
:widths: 50 50
:header-rows: 1
* - Left
- Right
* - Long text that should be easy to break up into multiple lines
- Another long text that should be easy to break up into multiple lines
Bar
^D
.PP
.na
.nr LLold \n[LL]
.TS
delim(@@) tab( );
lw(35.0n) lw(35.0n).
T{
Left
T} T{
Right
T}
_
T{
.nr LL 35.0n
.LP
Long text that should be easy to break up into multiple lines
T} T{
.nr LL 35.0n
.PP
Another long text that should be easy to break up into multiple lines
.PP
Bar
T}
.TE
.nr LL \n[LLold]
.ad
```