summaryrefslogtreecommitdiff
path: root/tex/context/base/util-prs.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-12-14 13:34:00 +0100
committerHans Hagen <pragma@wxs.nl>2013-12-14 13:34:00 +0100
commitaf6afe18f5ac2f2474044f44413924ac4ae9800d (patch)
tree3ee200d6b21083f0ea1b194277fa73394d1eccf4 /tex/context/base/util-prs.lua
parentc651d2abf2b613fe3ac390932bceb65f9358e304 (diff)
downloadcontext-af6afe18f5ac2f2474044f44413924ac4ae9800d.tar.gz
beta 2013.12.14 13:34
Diffstat (limited to 'tex/context/base/util-prs.lua')
-rw-r--r--tex/context/base/util-prs.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/util-prs.lua b/tex/context/base/util-prs.lua
index 29a57e094..9518b7f38 100644
--- a/tex/context/base/util-prs.lua
+++ b/tex/context/base/util-prs.lua
@@ -483,8 +483,8 @@ function parsers.rfc4180splitter(specification)
* Cs((dquotechar + (1 - quotechar))^0)
* quotechar
local non_escaped = C((1 - quotechar - newline - separator)^1)
- local field = escaped + non_escaped
- local record = Ct((field * separator^-1)^1)
+ local field = escaped + non_escaped + Cc("")
+ local record = Ct(field * (separator * field)^1)
local headerline = record * Cp()
local wholeblob = Ct((newline^-1 * record)^0)
return function(data,getheader)