summaryrefslogtreecommitdiff
path: root/tex/context/base/util-mrg.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-02-05 18:00:28 +0200
committerMarius <mariausol@gmail.com>2013-02-05 18:00:28 +0200
commit4da65414b21ec97421091a2df4306455f8ed1146 (patch)
tree76780b6d45209c414bcdcd2125d34dadb75ea399 /tex/context/base/util-mrg.lua
parent81b259023be92950100711433ea17f3cdebf45fb (diff)
downloadcontext-4da65414b21ec97421091a2df4306455f8ed1146.tar.gz
beta 2013.02.05 13:35
Diffstat (limited to 'tex/context/base/util-mrg.lua')
-rw-r--r--tex/context/base/util-mrg.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tex/context/base/util-mrg.lua b/tex/context/base/util-mrg.lua
index cdac10ac1..276531d79 100644
--- a/tex/context/base/util-mrg.lua
+++ b/tex/context/base/util-mrg.lua
@@ -120,6 +120,10 @@ local compact = Cs ( (
local strip = Cs((emptyline^2/"\n" + 1)^0)
local stripreturn = Cs((1-P("return") * space^1 * P(1-space-eol)^1 * (space+eol)^0 * P(-1))^1)
+function merger.compact(data)
+ return lpegmatch(strip,lpegmatch(compact,data))
+end
+
local function self_compact(data)
local delta = 0
if merger.strip_comment then