diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-03-01 21:38:28 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-03-01 21:38:28 +0100 |
commit | fe4311d5a1482ab2e0edfe78c556bf28fc50adf7 (patch) | |
tree | 2a4799398c8ef81f261df23405ad64849346dd1b /test/Tests/Writers | |
parent | d21c7fee66d6737ae1262cfea01633d041499da2 (diff) | |
download | pandoc-fe4311d5a1482ab2e0edfe78c556bf28fc50adf7.tar.gz |
LaTeX writer: always add hypertarget when there's a non-empty identifier.
Previously the hypertargets were only added when there was actually
a link to that identifier. Closes #2719.
Diffstat (limited to 'test/Tests/Writers')
-rw-r--r-- | test/Tests/Writers/LaTeX.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Tests/Writers/LaTeX.hs b/test/Tests/Writers/LaTeX.hs index f54aef4dc..fc4212aed 100644 --- a/test/Tests/Writers/LaTeX.hs +++ b/test/Tests/Writers/LaTeX.hs @@ -58,7 +58,7 @@ tests = [ testGroup "code blocks" [ "unnumbered header" =: headerWith ("foo",["unnumbered"],[]) 1 (text "Header 1" <> note (plain $ text "note")) =?> - "\\section*{\\texorpdfstring{Header 1\\footnote{note}}{Header 1}}\\label{foo}\n\\addcontentsline{toc}{section}{Header 1}\n" + "\\hypertarget{foo}{%\n\\section*{\\texorpdfstring{Header 1\\footnote{note}}{Header 1}}\\label{foo}}\n\\addcontentsline{toc}{section}{Header 1}\n" , "in list item" =: bulletList [header 2 (text "foo")] =?> "\\begin{itemize}\n\\item ~\n \\subsection{foo}\n\\end{itemize}" |