aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2018-06-01 19:12:06 +0200
committerRobert Alessi <alessi@robertalessi.net>2018-06-01 19:24:34 +0200
commitfe8f6c470dd180284d4b9e2f5a45295a9b48355a (patch)
treec06d2066f2bd55888542203405cbda01e057615d
parent9ed235c0bea637355cfa53222ae263cabc476ba8 (diff)
downloadarabluatex-fe8f6c470dd180284d4b9e2f5a45295a9b48355a.tar.gz
replaced '.?' pattern with '%s?' in two places in brkcmds()
-rw-r--r--arabluatex.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index 94332e0..8ba42fd 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -101,14 +101,14 @@ local function breakcmd(str)
101 end) 101 end)
102 str = string.gsub(str, "(\\item)(%s+)", "%1{}%2") 102 str = string.gsub(str, "(\\item)(%s+)", "%1{}%2")
103 -- \textcolor 103 -- \textcolor
104 str = string.gsub(str, "\\(textcolor.?)(%b{})(%b{})", 104 str = string.gsub(str, "\\(textcolor%s?)(%b{})(%b{})",
105 function(tag, bodycolor, bodytext) 105 function(tag, bodycolor, bodytext)
106 bodycolor = string.sub(bodycolor, 2, -2) 106 bodycolor = string.sub(bodycolor, 2, -2)
107 bodytext = string.sub(bodytext, 2, -2) 107 bodytext = string.sub(bodytext, 2, -2)
108 return string.format("}\\%s{%s}{\\arb{%s}}\\arb{", tag, bodycolor, bodytext) 108 return string.format("}\\%s{%s}{\\arb{%s}}\\arb{", tag, bodycolor, bodytext)
109 end) 109 end)
110 -- Abjad 110 -- Abjad
111 str = string.gsub(str, "\\(abjad.-)(%b{})", 111 str = string.gsub(str, "\\(abjad%s?)(%b{})",
112 function(tag, body) 112 function(tag, body)
113 body = string.sub(body, 2, -2) 113 body = string.sub(body, 2, -2)
114 return string.format("}\\aemph{\\%s{%s}}\\arb{", tag, body) 114 return string.format("}\\aemph{\\%s{%s}}\\arb{", tag, body)