git.iko.soy/typeable/pandoc
on master help sign in
T.P.CSV: fix parsing of unquoted values.
f0a991aJohn MacFarlane
src/Text/Pandoc/CSV.hs+1−2
@@ -68,8 +68,7 @@ escaped opts = try $
68
68
69pCSVUnquotedCell :: CSVOptions -> Parser Text
69pCSVUnquotedCell :: CSVOptions -> Parser Text
70pCSVUnquotedCell opts = T.pack <$>
70pCSVUnquotedCell opts = T.pack <$>
71− many (satisfy (\c -> c /= csvDelim opts && c /= '\r' && c /= '\n'
71+ many (satisfy (\c -> c /= csvDelim opts && c /= '\r' && c /= '\n'))
72− && c /= csvQuote opts))
73
72
74pCSVDelim :: CSVOptions -> Parser ()
73pCSVDelim :: CSVOptions -> Parser ()
75pCSVDelim opts = do
74pCSVDelim opts = do
test/command/7112.mdnew file+15
@@ -0,0 +1,15 @@
1+```
2+% pandoc -f rst
3+.. csv-table::
4+
5+ setting, ``echo PATH="path"``
6+^D
7+<table>
8+<tbody>
9+<tr class="odd">
10+<td>setting</td>
11+<td><code>echo PATH="path"</code></td>
12+</tr>
13+</tbody>
14+</table>
15+```