summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/data-tex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/data-tex.lua')
-rw-r--r--tex/context/base/mkiv/data-tex.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/data-tex.lua b/tex/context/base/mkiv/data-tex.lua
index e7c4941ca..e4795d09d 100644
--- a/tex/context/base/mkiv/data-tex.lua
+++ b/tex/context/base/mkiv/data-tex.lua
@@ -84,6 +84,19 @@ local function splitlines(str)
return lpegmatch(linesplitter,str)
end
+-- not really a bottleneck, but it might become:
+--
+-- local splitlines = string.splitlines or function(str)
+-- return lpegmatch(linesplitter,str)
+-- end
+--
+-- directives.register("system.linesplitmethod",function(v)
+-- linesplitter = linesplitters[tonumber(v) or 1] or linesplitters[1]
+-- splitlines = function(str)
+-- return lpegmatch(linesplitter,str)
+-- end
+-- end)
+
-----------------------------------------
local wideutfcoding = {