aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Schenner <mathias.schenner@langsci-press.org>2015-03-08 15:47:39 +0100
committerMathias Schenner <mathias.schenner@langsci-press.org>2015-03-08 15:47:39 +0100
commit12bf0ff3e528464cfc4173544bb9b4a0057c671e (patch)
treef129ab7d9f3abfd74f7f3a0d833dcf4dee569c46 /src
parent1e3ef0e36f8576bf87115ece66675b56651c7a28 (diff)
downloadpandoc-12bf0ff3e528464cfc4173544bb9b4a0057c671e.tar.gz
LaTeX reader: allow non-empty colsep in tables
The `tabular` environment allows non-empty column separators with the "@{...}" syntax. Previously, pandoc would fail to parse tables if a non-empty colsep was present. With this commit, these separators are still ignored, but the table gets parsed. A test case is included.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 8689fde45..1df2d4caf 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -1275,7 +1275,7 @@ complexNatbibCitation mode = try $ do
parseAligns :: LP [Alignment]
parseAligns = try $ do
char '{'
- let maybeBar = skipMany $ sp <|> () <$ char '|' <|> () <$ try (string "@{}")
+ let maybeBar = skipMany $ sp <|> () <$ char '|' <|> () <$ (char '@' >> braced)
maybeBar
let cAlign = AlignCenter <$ char 'c'
let lAlign = AlignLeft <$ char 'l'