diff options
author | Robert Alessi <alessi@robertalessi.net> | 2019-10-03 12:23:09 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2019-10-03 12:23:09 +0200 |
commit | e0e904709cc2ba0d581d13aa08b6fba7fdfd9d58 (patch) | |
tree | 9e1df3f2857495c72b5e951179345f42884047b0 | |
parent | dc2439a5f86767be6620ae952b47fcfd7a8bc302 (diff) | |
download | arabluatex-e0e904709cc2ba0d581d13aa08b6fba7fdfd9d58.tar.gz |
takeoutarb(): put on hold nested \arb{}s instead of discarding them
-rw-r--r-- | arabluatex.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arabluatex.lua b/arabluatex.lua index a91e211..70d2589 100644 --- a/arabluatex.lua +++ b/arabluatex.lua | |||
@@ -269,7 +269,7 @@ local function takeoutarb(str) | |||
269 | end | 269 | end |
270 | str = string.gsub(str, "(\\arb%s?)(%b{})", function(tag, body) | 270 | str = string.gsub(str, "(\\arb%s?)(%b{})", function(tag, body) |
271 | body = string.sub(body, 2, -2) | 271 | body = string.sub(body, 2, -2) |
272 | return string.format("%s", body) | 272 | return string.format("\\al@brk{%s{%s}}", tag, body) |
273 | end) | 273 | end) |
274 | str = string.gsub(str, "\\@rb", "\\arb") | 274 | str = string.gsub(str, "\\@rb", "\\arb") |
275 | str = "\\arb{"..str.."}" | 275 | str = "\\arb{"..str.."}" |