diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/cldf-ini.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/cldf-ini.lua | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/cldf-ini.lua b/Master/texmf-dist/tex/context/base/mkiv/cldf-ini.lua index b0b73186644..3c91f5fba1a 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/cldf-ini.lua +++ b/Master/texmf-dist/tex/context/base/mkiv/cldf-ini.lua @@ -1450,11 +1450,19 @@ do local p_texescape = patterns.texescape function context.escaped(s) - return context(lpegmatch(p_texescape,s) or s) + if s then + context(lpegmatch(p_texescape,s) or s) + else + -- context("") + end end function context.escape(s) - return lpegmatch(p_texescape,s) or s or "" + if s then + return lpegmatch(p_texescape,s) or s + else + return "" + end end end |