diff options
Diffstat (limited to 'tex/context/base/tabl-tbl.lua')
-rw-r--r-- | tex/context/base/tabl-tbl.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tex/context/base/tabl-tbl.lua b/tex/context/base/tabl-tbl.lua index dbb3cfd37..4531b2134 100644 --- a/tex/context/base/tabl-tbl.lua +++ b/tex/context/base/tabl-tbl.lua @@ -21,6 +21,8 @@ local nested = lpeg.patterns.nested local pattern = Ct((separator * (C(nested) + Cc("")) * C((1-separator)^0))^0) function commands.presettabulate(preamble) + -- todo: lpeg + preamble = string.escapedpattern(preamble) preamble = gsub(preamble, "%*(%b{})(%b{})", function(n,p) return rep(sub(p,2,-2),tonumber(sub(n,2,-2)) or 1) end) |