aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2011-12-23 18:26:03 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2011-12-23 18:26:03 -0800
commit77815c63db258e6c5362ec29bd3ee42b7f7651ba (patch)
tree662719122786a8c2b371d2f740d4a9f3345cc9f5 /src
parent3fa98607db2387013751184ee21bb7b4197669ee (diff)
downloadpandoc-77815c63db258e6c5362ec29bd3ee42b7f7651ba.tar.gz
LaTeX writer: Have LHS files set the "listings" variable.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index ce5d06826..28bffef2d 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -130,7 +130,7 @@ pandocToLaTeX options (Pandoc (Meta title authors date) blocks) = do
[ ("lhs", "yes") | stLHS st ] ++
[ ("graphics", "yes") | stGraphics st ] ++
[ ("book-class", "yes") | stBook st] ++
- [ ("listings", "yes") | writerListings options ] ++
+ [ ("listings", "yes") | writerListings options || stLHS st ] ++
[ ("highlighting-macros", defaultLaTeXMacros) | stHighlighting st ] ++
citecontext
return $ if writerStandalone options