From 1845085452b6fbb8f6a800e035fcd400b93ae445 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Sun, 7 Apr 2019 17:07:13 +0200 Subject: [de053f9] added 'or ' in case there is no match --- ekdosis.dtx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ekdosis.dtx') diff --git a/ekdosis.dtx b/ekdosis.dtx index 9bda050..7001eac 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx @@ -770,7 +770,7 @@ local function lem_rdg_totei(str) function(bkslash, cmd, opt, arg) opt = string.sub(opt, 2, -2) arg = string.sub(arg, 2, -2) - opt = string.match(opt, "%f[%w]wit%s?%=%s?%b{}") + opt = string.match(opt, "%f[%w]wit%s?%=%s?%b{}") or "" opt = string.gsub(opt, "wit%s?%=%s?(%b{})", function(bbraces) bbraces = string.sub(bbraces, 2, -2) bbraces = ekdosis.getsiglum(bbraces, "tei") -- cgit v1.2.3