summaryrefslogtreecommitdiff
path: root/tex/context/base/cldf-ver.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-01-31 00:18:53 +0200
committerMarius <mariausol@gmail.com>2011-01-31 00:18:53 +0200
commit3019c4ccfb0d984b45670a86d2400a6aacfbaa68 (patch)
tree92edfef9689a49ee95bc35cbe875a5e0ed0c7121 /tex/context/base/cldf-ver.lua
parentfcf2bf760b1f48c1ba2f5d0a3eed5dacb2751e95 (diff)
downloadcontext-3019c4ccfb0d984b45670a86d2400a6aacfbaa68.tar.gz
beta 2011.01.18 19:34
Diffstat (limited to 'tex/context/base/cldf-ver.lua')
-rw-r--r--tex/context/base/cldf-ver.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/cldf-ver.lua b/tex/context/base/cldf-ver.lua
index 120bc468a..54cc6a58b 100644
--- a/tex/context/base/cldf-ver.lua
+++ b/tex/context/base/cldf-ver.lua
@@ -15,7 +15,7 @@ local tostring, type = tostring, type
local context = context
local function flush(...)
- context(concat{...,"\n"})
+ context(concat{...,"\r"}) -- was \n
end
local function t_tocontext(...)
@@ -57,7 +57,7 @@ end
function context.tobuffer(name,str)
context.startbuffer { name }
context.pushcatcodes("verbatim")
- local lines = (type(str) == "string" and find(str,"\n") and splitlines(str)) or str
+ local lines = (type(str) == "string" and find(str,"[\n\r]") and splitlines(str)) or str
for i=1,#lines do
context(lines[i] .. " ")
end