diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-05-20 17:12:00 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-05-20 17:12:38 -0700 |
commit | d7b5def287aefe91f881daeecc5f72121c843b66 (patch) | |
tree | 37c3a7e85b025d2c264808ca3f44a4ad9bbc5693 /test/command | |
parent | bb11f5fb86993559f9999d4795355b02ae78cc3d (diff) | |
download | pandoc-d7b5def287aefe91f881daeecc5f72121c843b66.tar.gz |
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.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/7288.md | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/command/7288.md b/test/command/7288.md new file mode 100644 index 000000000..e94aeeeb3 --- /dev/null +++ b/test/command/7288.md @@ -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 +``` |