aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-05-11 07:52:05 -0600
committerJohn MacFarlane <jgm@berkeley.edu>2021-05-11 07:52:05 -0600
commit2bd5d0cafbe67fa723f49fd2d35d913594fdb935 (patch)
tree12c0bf80f9833e3295d5723e450371d28b2cb613 /test/command
parentff7176de80726a5db4c4bc4c5a3296b2bcdab192 (diff)
downloadpandoc-2bd5d0cafbe67fa723f49fd2d35d913594fdb935.tar.gz
LaTeX writer: better handling of line breaks in simple tables.
Now we also handle the case where they're embedded in other elements, e.g. spans. Closes #7272.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/7272.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/command/7272.md b/test/command/7272.md
new file mode 100644
index 000000000..d3a3b2137
--- /dev/null
+++ b/test/command/7272.md
@@ -0,0 +1,24 @@
+```
+% pandoc -t latex -f html
+<table>
+ <tbody>
+ <tr>
+ <td>
+ <span>
+ text
+ <br />
+ text2
+ </span>
+ </td>
+ </tr>
+ </tbody>
+</table>
+^D
+\begin{longtable}[]{@{}
+ >{\raggedright\arraybackslash}p{(\columnwidth - 0\tabcolsep) * \real{1.00}}@{}}
+\toprule
+\endhead
+{\vtop{\hbox{\strut text}\hbox{\strut text2 }}} \\
+\bottomrule
+\end{longtable}
+```