diff options
author | Robert Alessi <alessi@robertalessi.net> | 2018-06-11 15:22:32 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2018-06-11 15:22:32 +0200 |
commit | e2a9541fcac358cc08057b8b5e45b90dd21afc3b (patch) | |
tree | 8a32549b0cc6e9617db41eccf8c72305c4c524e2 | |
parent | e1867b5ce3e63c851c5ac35af781ff6f8149a5f0 (diff) | |
download | arabluatex-e2a9541fcac358cc08057b8b5e45b90dd21afc3b.tar.gz |
tidy up
-rw-r--r-- | arabluatex.lua | 4 |
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 |