diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-11-22 10:54:42 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-11-22 10:54:42 -0800 |
commit | b5b5ef92cbb48a709e8de861d64db29516daf815 (patch) | |
tree | 6d22c469b71d8e033c2638c8f7d788e815b0b3c2 /test/command | |
parent | 5344dab8ebf29ff96dd9e0d1411e11b44e2ccccf (diff) | |
download | pandoc-b5b5ef92cbb48a709e8de861d64db29516daf815.tar.gz |
LaTeX writer: Improve table spacing.
+ Remove the `\strut` that was added at the end of minipage
environments in cells.
+ Replace `\tabularnewline` with `\\ \addlinespace`.
Closes #6842, closes #6860.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/2378.md | 6 | ||||
-rw-r--r-- | test/command/5367.md | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/test/command/2378.md b/test/command/2378.md index 801c168ad..e81855367 100644 --- a/test/command/2378.md +++ b/test/command/2378.md @@ -14,14 +14,14 @@ is used. \begin{longtable}[]{@{}ll@{}} \caption{a table}\tabularnewline \toprule -x & y\footnote{a footnote}\tabularnewline +x & y\footnote{a footnote} \\ \addlinespace \midrule \endfirsthead \toprule -x & y{}\tabularnewline +x & y{} \\ \addlinespace \midrule \endhead -1 & 2\tabularnewline +1 & 2 \\ \addlinespace \bottomrule \end{longtable} ``` diff --git a/test/command/5367.md b/test/command/5367.md index 18ac764ab..f56211517 100644 --- a/test/command/5367.md +++ b/test/command/5367.md @@ -24,19 +24,19 @@ hello\footnote{doc footnote} \caption[Sample table.]{Sample table.\footnote{caption footnote}}\tabularnewline \toprule \begin{minipage}[b]{(\columnwidth - 0\tabcolsep) * \real{0.17}}\centering -Fruit\footnote{header footnote}\strut -\end{minipage}\tabularnewline +Fruit\footnote{header footnote} +\end{minipage} \\ \addlinespace \midrule \endfirsthead \toprule \begin{minipage}[b]{(\columnwidth - 0\tabcolsep) * \real{0.17}}\centering -Fruit{}\strut -\end{minipage}\tabularnewline +Fruit{} +\end{minipage} \\ \addlinespace \midrule \endhead \begin{minipage}[t]{(\columnwidth - 0\tabcolsep) * \real{0.17}}\centering -Bans\footnote{table cell footnote}\strut -\end{minipage}\tabularnewline +Bans\footnote{table cell footnote} +\end{minipage} \\ \addlinespace \bottomrule \end{longtable} |