summaryrefslogtreecommitdiff
path: root/tex/context/base/lpdf-ini.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-04-19 17:40:15 +0300
committerMarius <mariausol@gmail.com>2011-04-19 17:40:15 +0300
commit865b5da32dfab508db87744c7542a59c192dd459 (patch)
tree59d82bdb555d95cd5734743d9259662fd5c16c62 /tex/context/base/lpdf-ini.lua
parent930f95164ea82514ff24bf71c6baddd40a569766 (diff)
downloadcontext-865b5da32dfab508db87744c7542a59c192dd459.tar.gz
beta 2011.04.19 16:38
Diffstat (limited to 'tex/context/base/lpdf-ini.lua')
-rw-r--r--tex/context/base/lpdf-ini.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tex/context/base/lpdf-ini.lua b/tex/context/base/lpdf-ini.lua
index 206e44688..6d7282036 100644
--- a/tex/context/base/lpdf-ini.lua
+++ b/tex/context/base/lpdf-ini.lua
@@ -93,12 +93,12 @@ end
lpdf.toeight = toeight
---~ local escaped = lpeg.Cs((lpeg.S("\0\t\n\r\f ()[]{}/%")/"#" + lpeg.P(1))^0)
---~
+--~ local escaped = lpeg.Cs((lpeg.S("\0\t\n\r\f ()[]{}/%")/function(s) return format("#%02X",byte(s)) end + lpeg.P(1))^0)
+
--~ local function cleaned(str)
--~ return (str and str ~= "" and lpegmatch(escaped,str)) or ""
--~ end
---~
+
--~ lpdf.cleaned = cleaned -- not public yet
local function merge_t(a,b)