From d6b0cdcedf7f96f432a7bd7e54c41bec159fcd19 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Fri, 13 Nov 2009 22:13:58 +0000 Subject: [PATCH] Blind but most likely correct fix missing \iclip support in cleantags.lua. Updates #1044. Originally committed to SVN as r3772. --- aegisub/automation/include/cleantags.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aegisub/automation/include/cleantags.lua b/aegisub/automation/include/cleantags.lua index 858b7d04c..0810c5c1e 100644 --- a/aegisub/automation/include/cleantags.lua +++ b/aegisub/automation/include/cleantags.lua @@ -23,8 +23,8 @@ OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -cleantags_version = "1.300" -cleantags_modified = "27 February 2009" +cleantags_version = "1.301" +cleantags_modified = "13 November 2009" ktag = "\\[kK][fo]?%d+" @@ -98,7 +98,7 @@ function cleantags(text) --[[ Remove any spaces within parenteses within override blocks except for \clip tags ]] local comb = function(a,b,c,d,e) - if c ~= "\\clip" or d:sub(-1):find("[,%({]") or e:sub(1,1):find("[,%)}]") then return a..b..d..e + if c ~= "\\i?clip" or d:sub(-1):find("[,%({]") or e:sub(1,1):find("[,%)}]") then return a..b..d..e else return a..b..d..string.char(2)..e end end repeat