From de053f9410803d0830e586b4cec7e4ffe438d603 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Tue, 2 Apr 2019 13:05:56 +0200
Subject: lem_rdg_totei() needed string.match

---
 ekdosis.dtx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'ekdosis.dtx')

diff --git a/ekdosis.dtx b/ekdosis.dtx
index 3e30e1e..de2e842 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -734,6 +734,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.gsub(opt, "wit%s?%=%s?(%b{})", function(bbraces)
 				      bbraces = string.sub(bbraces, 2, -2)
 				      bbraces = ekdosis.getsiglum(bbraces, "tei")
-- 
cgit v1.2.3

