aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/CSV.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-02-22 21:17:22 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-02-22 21:18:04 -0800
commitf0a991a22be9b82e192d63bf80bbe39679bb2e07 (patch)
tree2ebc75ef6acaf3ca68b8844fc68adfa2e3f39a0c /src/Text/Pandoc/CSV.hs
parent00e4bb51e47487fa146caee3bcbbacef51292acc (diff)
downloadpandoc-f0a991a22be9b82e192d63bf80bbe39679bb2e07.tar.gz
T.P.CSV: fix parsing of unquoted values.
Previously we didn't allow unescaped quotes in unquoted values, but they are allowed. Closes #7112.
Diffstat (limited to 'src/Text/Pandoc/CSV.hs')
-rw-r--r--src/Text/Pandoc/CSV.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Text/Pandoc/CSV.hs b/src/Text/Pandoc/CSV.hs
index ec212fa9a..2bd21bcfb 100644
--- a/src/Text/Pandoc/CSV.hs
+++ b/src/Text/Pandoc/CSV.hs
@@ -68,8 +68,7 @@ escaped opts = try $
pCSVUnquotedCell :: CSVOptions -> Parser Text
pCSVUnquotedCell opts = T.pack <$>
- many (satisfy (\c -> c /= csvDelim opts && c /= '\r' && c /= '\n'
- && c /= csvQuote opts))
+ many (satisfy (\c -> c /= csvDelim opts && c /= '\r' && c /= '\n'))
pCSVDelim :: CSVOptions -> Parser ()
pCSVDelim opts = do