aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2019-02-10 08:18:22 +0100
committerRobert Alessi <alessi@robertalessi.net>2019-02-10 08:18:22 +0100
commit01e4e7dfc1e1249aed51cd82c9b088efe4fd1272 (patch)
tree841dd6caf0fe086d33ff7e8c1325582a9092f1da /arabluatex.lua
parent4a915e1a19547c4e4153277035308ce69c376961 (diff)
downloadarabluatex-01e4e7dfc1e1249aed51cd82c9b088efe4fd1272.tar.gz
uc(): remove unnecessary braces
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index c0e9042..5449689 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -1100,6 +1100,10 @@ function uc(str)
1100 for i = 1,#lcuc do 1100 for i = 1,#lcuc do
1101 str = string.gsub(str, "(%s[%(%<%[]?)"..lcuc[i].a, "%1"..lcuc[i].b) 1101 str = string.gsub(str, "(%s[%(%<%[]?)"..lcuc[i].a, "%1"..lcuc[i].b)
1102 end 1102 end
1103 str = gsub(str, -cmd * bcbraces, function(body)
1104 body = string.sub(body, 2, -2)
1105 return string.format("%s", body)
1106 end)
1103 if export_utf == "yes" then 1107 if export_utf == "yes" then
1104 tofile = str 1108 tofile = str
1105 tooutfile(tofile) 1109 tooutfile(tofile)