aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-06-20 11:21:32 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-06-20 11:21:32 +0200
commit6a077ac9c79ac16d6af5409976e48ad80f42fd01 (patch)
tree5e0ffa5e7d4562cd5329ce207009deb80cf21e78 /test
parent8af1c065d2791d6e76735a56c0ce22f4ad957b6f (diff)
downloadpandoc-6a077ac9c79ac16d6af5409976e48ad80f42fd01.tar.gz
Fixed footnotes in table captions.
Note that if the table has a first page header and a continuation page header, the notes will appear only on the first occurrence of the header. Closes #2378.
Diffstat (limited to 'test')
-rw-r--r--test/command/2378.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/command/2378.md b/test/command/2378.md
new file mode 100644
index 000000000..801c168ad
--- /dev/null
+++ b/test/command/2378.md
@@ -0,0 +1,27 @@
+Ensure that we don't get duplicated footnotes when
+a note occurs in a header cell and `\endfirsthead`
+is used.
+
+```
+% pandoc -t latex
+| x | y[^fn] |
+|-|-|
+|1|2|
+: a table
+
+[^fn]: a footnote
+^D
+\begin{longtable}[]{@{}ll@{}}
+\caption{a table}\tabularnewline
+\toprule
+x & y\footnote{a footnote}\tabularnewline
+\midrule
+\endfirsthead
+\toprule
+x & y{}\tabularnewline
+\midrule
+\endhead
+1 & 2\tabularnewline
+\bottomrule
+\end{longtable}
+```