summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2022-03-30 10:07:09 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2022-03-30 10:07:09 -0700
commit5f0bfd41a80aaf4d05c37357a317a6694ec338ec (patch)
treecf4ce4e9ef177ec133e36ee5dd44f80440822cbb /test/command
parentbb5f0f7b761fbee084af4cc06210efd0331cd048 (diff)
LaTeX writer: add () after booktabs rules.
These commands take optional arguments with () and [], which can lead to problems if the content of the table cell begins with these characters. Closes #8001.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/2378.md10
-rw-r--r--test/command/5367.md10
-rw-r--r--test/command/7272.md4
3 files changed, 12 insertions, 12 deletions
diff --git a/test/command/2378.md b/test/command/2378.md
index 59359c653..7b6586366 100644
--- a/test/command/2378.md
+++ b/test/command/2378.md
@@ -13,15 +13,15 @@ is used.
^D
\begin{longtable}[]{@{}ll@{}}
\caption{a table}\tabularnewline
-\toprule
+\toprule()
x & y\footnote{a footnote} \\
-\midrule
+\midrule()
\endfirsthead
-\toprule
+\toprule()
x & y{} \\
-\midrule
+\midrule()
\endhead
1 & 2 \\
-\bottomrule
+\bottomrule()
\end{longtable}
```
diff --git a/test/command/5367.md b/test/command/5367.md
index 427aab913..591ee4b2e 100644
--- a/test/command/5367.md
+++ b/test/command/5367.md
@@ -23,20 +23,20 @@ hello\footnote{doc footnote}
\begin{longtable}[]{@{}
>{\centering\arraybackslash}p{(\columnwidth - 0\tabcolsep) * \real{0.1667}}@{}}
\caption[Sample table.]{Sample table.\footnote{caption footnote}}\tabularnewline
-\toprule
+\toprule()
\begin{minipage}[b]{\linewidth}\centering
Fruit\footnote{header footnote}
\end{minipage} \\
-\midrule
+\midrule()
\endfirsthead
-\toprule
+\toprule()
\begin{minipage}[b]{\linewidth}\centering
Fruit{}
\end{minipage} \\
-\midrule
+\midrule()
\endhead
Bans\footnote{table cell footnote} \\
-\bottomrule
+\bottomrule()
\end{longtable}
dolly\footnote{doc footnote}
diff --git a/test/command/7272.md b/test/command/7272.md
index cea282a10..bb184ad4b 100644
--- a/test/command/7272.md
+++ b/test/command/7272.md
@@ -16,12 +16,12 @@
^D
\begin{longtable}[]{@{}
>{\raggedright\arraybackslash}p{(\columnwidth - 0\tabcolsep) * \real{1.0000}}@{}}
-\toprule
+\toprule()
\endhead
\begin{minipage}[t]{\linewidth}\raggedright
{ text\\
text2 }\strut
\end{minipage} \\
-\bottomrule
+\bottomrule()
\end{longtable}
```