From 376583efb5d484c509d0f6e2c942032f461b8a98 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Thu, 4 Apr 2019 18:00:48 +0200
Subject: have starred TeX commands processed by textotei() as unstarred
 equivalents

---
 ekdosis.dtx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'ekdosis.dtx')

diff --git a/ekdosis.dtx b/ekdosis.dtx
index 9e82bb5..cecdbbc 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -762,8 +762,8 @@ function ekdosis.textotei(str)
    str = lem_rdg_totei(str)
    for i = 1,#cmdtotags
    do
-      str = string.gsub(str, "(\\"..cmdtotags[i].a..")%s?(%b{})", "%1[]%2")
-      str = string.gsub(str, "(\\"..cmdtotags[i].a..")%s?(%b[])(%b{})",
+      str = string.gsub(str, "(\\"..cmdtotags[i].a..")%s?%*?(%b{})", "%1[]%2")
+      str = string.gsub(str, "(\\"..cmdtotags[i].a..")%s?%*?(%b[])(%b{})",
 			function(cmd, arg, body)
 			   body = string.sub(body, 2, -2)
 			   arg = string.sub(arg, 2, -2)
-- 
cgit v1.2.3

