aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arabluatex.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index f0c03c6..5e88b96 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -29,7 +29,7 @@ require("arabluatex_trans")
29 29
30local function protectarb(str) 30local function protectarb(str)
31 str = string.gsub(str, "(\\arb.?)(%[.-%])(%b{})", "\\@arb%2%3") 31 str = string.gsub(str, "(\\arb.?)(%[.-%])(%b{})", "\\@arb%2%3")
32 str = string.gsub(str, "(\\begin.?)(%b{})(%b[])", "\\@begin%3%2") 32 str = string.gsub(str, "(\\begin.?)(%b{})(%b[])", "\\@@begin{%2%3}")
33 str = string.gsub(str, "(\\begin.?)(%b{})", "\\@begin%2") 33 str = string.gsub(str, "(\\begin.?)(%b{})", "\\@begin%2")
34 str = string.gsub(str, "(\\end.?)(%b{})", "\\@end%2") 34 str = string.gsub(str, "(\\end.?)(%b{})", "\\@end%2")
35 str = string.gsub(str, "\\par", "\\p@r{}") 35 str = string.gsub(str, "\\par", "\\p@r{}")
@@ -39,7 +39,7 @@ end
39 39
40local function unprotectarb(str) 40local function unprotectarb(str)
41 str = string.gsub(str, "(\\@arb)(%[.-%])(%b{})", "\\arb%2%3") 41 str = string.gsub(str, "(\\@arb)(%[.-%])(%b{})", "\\arb%2%3")
42 str = string.gsub(str, "(\\@begin)(%b[])(%b{})", "\\begin%3%2") 42 str = string.gsub(str, "(\\@@begin){(%b{})(%b[])}", "\\begin%2%3")
43 str = string.gsub(str, "(\\@begin)(%b{})", "\\begin%2") 43 str = string.gsub(str, "(\\@begin)(%b{})", "\\begin%2")
44 str = string.gsub(str, "(\\@end)(%b{})", "\\end%2") 44 str = string.gsub(str, "(\\@end)(%b{})", "\\end%2")
45 str = string.gsub(str, "\\p@r{}", "\\par") 45 str = string.gsub(str, "\\p@r{}", "\\par")