aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-03-06 10:13:12 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-03-06 10:13:12 -0800
commit48be39ae2a023b566ee26ebde5eb1ab743d1269e (patch)
tree340ae37853fd0d10c3d2a262ae0a194dee9bf8c0 /src/Text/Pandoc/Readers
parentf7d37c97bbaf79109198a12e247bff68eb1f71b1 (diff)
downloadpandoc-48be39ae2a023b566ee26ebde5eb1ab743d1269e.tar.gz
Support :number-lines: in RST code output.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index b6f09bbb1..5a2ab599b 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -772,8 +772,7 @@ verbCmd = do
keyval :: LP (String, String)
keyval = try $ do
key <- many1 alphaNum
- char '='
- val <- many1 alphaNum
+ val <- option "" $ char '=' >> many1 alphaNum
skipMany spaceChar
optional (char ',')
skipMany spaceChar