summaryrefslogtreecommitdiff
path: root/tex/context/base/cldf-ver.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2010-11-20 14:00:11 +0200
committerMarius <mariausol@gmail.com>2010-11-20 14:00:11 +0200
commit44d0f4fe01338d0f699e1f09ae13d17088c2db83 (patch)
treed20a0b2c876a46cd9b4d2c8460e3ffa0be1739d4 /tex/context/base/cldf-ver.lua
parentb4b58bbfe882406b09b2548e7aa55d238987f894 (diff)
downloadcontext-44d0f4fe01338d0f699e1f09ae13d17088c2db83.tar.gz
beta 2010.11.20 12:51
Diffstat (limited to 'tex/context/base/cldf-ver.lua')
-rw-r--r--tex/context/base/cldf-ver.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/tex/context/base/cldf-ver.lua b/tex/context/base/cldf-ver.lua
index 12b5479b7..8607cb578 100644
--- a/tex/context/base/cldf-ver.lua
+++ b/tex/context/base/cldf-ver.lua
@@ -6,6 +6,8 @@ if not modules then modules = { } end modules ['cldf-ver'] = {
license = "see context related readme files"
}
+-- tex.print == newline
+
local concat, tohandle = table.concat, table.tohandle
local splitlines = string.splitlines
local tostring, type = tostring, type
@@ -55,7 +57,7 @@ end
function context.tobuffer(name,str)
context.startbuffer { name }
context.pushcatcodes("verbatim")
- local lines = type(str) == "string" and splitlines(str) or str
+ local lines = (type(str) == "string" and find(str,"\n") and splitlines(str)) or str
for i=1,#lines do
context(lines[i] .. " ")
end