summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/util-str.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-05-20 22:51:22 +0000
committerKarl Berry <karl@freefriends.org>2015-05-20 22:51:22 +0000
commitf4ca072dc8bbae3f3891556ff24ba3f325029539 (patch)
tree478494b84c4080631768d18a01123749d9e8dd02 /Master/texmf-dist/tex/context/base/util-str.lua
parent2f354a84092cf7b463c61fd6b281405c53d205ab (diff)
context 20may15
git-svn-id: svn://tug.org/texlive/trunk@37464 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/util-str.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/util-str.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/context/base/util-str.lua b/Master/texmf-dist/tex/context/base/util-str.lua
index de4a87e9f12..c2139b155c2 100644
--- a/Master/texmf-dist/tex/context/base/util-str.lua
+++ b/Master/texmf-dist/tex/context/base/util-str.lua
@@ -1118,7 +1118,7 @@ function string.optionalquoted(str)
return lpegmatch(pattern,str) or str
end
-local pattern = Cs((newline / os.newline + 1)^0)
+local pattern = Cs((newline / (os.newline or "\r") + 1)^0)
function string.replacenewlines(str)
return lpegmatch(pattern,str)