summaryrefslogtreecommitdiff
path: root/tex/context/base/util-str.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2015-05-18 13:15:04 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2015-05-18 13:15:04 +0200
commit53ff76b73cd1f373ecdfb0f7f17df6f352621d6e (patch)
treeba75e57f8ab12bf8edfb429bd6455e9dfca9512c /tex/context/base/util-str.lua
parentb55577d0998160c0174e250b542016ecd6ca9056 (diff)
downloadcontext-53ff76b73cd1f373ecdfb0f7f17df6f352621d6e.tar.gz
2015-05-18 12:28:00
Diffstat (limited to 'tex/context/base/util-str.lua')
-rw-r--r--tex/context/base/util-str.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tex/context/base/util-str.lua b/tex/context/base/util-str.lua
index de4a87e9f..c2139b155 100644
--- a/tex/context/base/util-str.lua
+++ b/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)