From 01e4e7dfc1e1249aed51cd82c9b088efe4fd1272 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Sun, 10 Feb 2019 08:18:22 +0100 Subject: uc(): remove unnecessary braces --- arabluatex.lua | 4 ++++ 1 file changed, 4 insertions(+) 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) for i = 1,#lcuc do str = string.gsub(str, "(%s[%(%<%[]?)"..lcuc[i].a, "%1"..lcuc[i].b) end + str = gsub(str, -cmd * bcbraces, function(body) + body = string.sub(body, 2, -2) + return string.format("%s", body) + end) if export_utf == "yes" then tofile = str tooutfile(tofile) -- cgit v1.2.3