diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-09-08 12:14:16 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-09-08 12:14:16 -0700 |
commit | c4639e5d2cc18449aae4fd34f5f4598ab4a1eb14 (patch) | |
tree | 733cf05df49be26ac21e42c092d3114e9b32ec2d /src/Text/Pandoc/Readers | |
parent | 3e8e20b4f5eff0c1c7af1f30bfa7e1eb1990da7b (diff) | |
download | pandoc-c4639e5d2cc18449aae4fd34f5f4598ab4a1eb14.tar.gz |
RST reader: Allow dashes as separator in simple tables.
Closes #555.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/RST.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index 9fb976903..bd5de161c 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -757,7 +757,7 @@ simpleTableHeader headless = try $ do rawContent <- if headless then return "" else simpleTableSep '=' >> anyLine - dashes <- simpleDashedLines '=' + dashes <- simpleDashedLines '=' <|> simpleDashedLines '-' newline let lines' = map snd dashes let indices = scanl (+) 0 lines' |