aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-06-29 07:58:33 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-06-29 07:59:00 -0700
commit3429fa6438355da63c3f418eda32b1a011ddbc40 (patch)
tree924ff75d9ebe1df3dc3ea3efe7b3a0a75ea196ac /tests
parenta349814665bbd2298acc367cd5485b983313a05d (diff)
downloadpandoc-3429fa6438355da63c3f418eda32b1a011ddbc40.tar.gz
LaTeX reader: fixed `\cite` so it is a NormalCitation not AuthorInText.
Diffstat (limited to 'tests')
-rw-r--r--tests/Tests/Readers/Org.hs2
-rw-r--r--tests/latex-reader.native2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs
index 348b5a6aa..7612d88f1 100644
--- a/tests/Tests/Readers/Org.hs
+++ b/tests/Tests/Readers/Org.hs
@@ -431,7 +431,7 @@ tests =
{ citationId = "Coffee"
, citationPrefix = []
, citationSuffix = []
- , citationMode = AuthorInText
+ , citationMode = NormalCitation
, citationNoteNum = 0
, citationHash = 0}
in (para . cite [citation] $ rawInline "latex" "\\cite{Coffee}")
diff --git a/tests/latex-reader.native b/tests/latex-reader.native
index 3cffccc1a..d1ff4c0a4 100644
--- a/tests/latex-reader.native
+++ b/tests/latex-reader.native
@@ -260,7 +260,7 @@ Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Spa
,HorizontalRule
,Header 1 ("latex",[],[]) [Str "LaTeX"]
,BulletList
- [[Para [Cite [Citation {citationId = "smith.1899", citationPrefix = [], citationSuffix = [Str "22-23"], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cite[22-23]{smith.1899}"]]]
+ [[Para [Cite [Citation {citationId = "smith.1899", citationPrefix = [], citationSuffix = [Str "22-23"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cite[22-23]{smith.1899}"]]]
,[Para [RawInline (Format "latex") "\\doublespacing"]]
,[Para [Math InlineMath "2+2=4"]]
,[Para [Math InlineMath "x \\in y"]]