aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index c2608c3..4d135f3 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -133,7 +133,7 @@ local function breakcmd(str)
133 body = string.gsub(body, "%+", "‍") -- ^^^^200d 133 body = string.gsub(body, "%+", "‍") -- ^^^^200d
134 return string.format("%s%s%s{%s}%s", li, tag, opt, body, lii) 134 return string.format("%s%s%s{%s}%s", li, tag, opt, body, lii)
135 end) 135 end)
136 -- to be taken out of \arb{}, as LR/RL footnotes and the like: 136 -- commands set by default in outofarb
137 for i = 1,#outofarb do 137 for i = 1,#outofarb do
138 str = gsub(str, dblbkslash * lpeg.Cs(outofarb[i]) * cmdargs, "}%1%2%3\\arb{") 138 str = gsub(str, dblbkslash * lpeg.Cs(outofarb[i]) * cmdargs, "}%1%2%3\\arb{")
139 end 139 end
@@ -141,7 +141,7 @@ local function breakcmd(str)
141 for i = 1,#albrkcmds do 141 for i = 1,#albrkcmds do
142 str = gsub(str, dblbkslash * lpeg.Cs(albrkcmds[i]) * cmdargs, "\\al@brk{%1%2%3}") 142 str = gsub(str, dblbkslash * lpeg.Cs(albrkcmds[i]) * cmdargs, "\\al@brk{%1%2%3}")
143 end 143 end
144 -- user commands 144 -- user commands (brkcmds)
145 if next(brkcmds) == nil then 145 if next(brkcmds) == nil then
146 -- nothing to do 146 -- nothing to do
147 else 147 else