From f4ca072dc8bbae3f3891556ff24ba3f325029539 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 20 May 2015 22:51:22 +0000 Subject: context 20may15 git-svn-id: svn://tug.org/texlive/trunk@37464 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/context/base/util-str.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Master/texmf-dist/tex/context/base/util-str.lua') 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) -- cgit v1.2.3