aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index d35114d..48e5987 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -66,7 +66,7 @@ local function breakcmd(str)
66 -- nothing to do 66 -- nothing to do
67 else 67 else
68 for i = 1,#brkcmds do 68 for i = 1,#brkcmds do
69 str = string.gsub(str, "\\"..brkcmds[i]..".?(%b{})", 69 str = string.gsub(str, "\\"..brkcmds[i].."%s?(%b{})",
70 function(body) 70 function(body)
71 body = string.sub(body, 2, -2) 71 body = string.sub(body, 2, -2)
72 return string.format("}\\"..brkcmds[i].."{%s}\\arb{", body) 72 return string.format("}\\"..brkcmds[i].."{%s}\\arb{", body)