diff options
-rw-r--r-- | become-fansubber.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/become-fansubber.lua b/become-fansubber.lua index dc2111d..363411a 100644 --- a/become-fansubber.lua +++ b/become-fansubber.lua @@ -1,8 +1,9 @@ script_name="CR Restyler" script_description="become a fansubber with a click of a button" script_author = "garret" -script_version = "1" +script_version = "2" +include("cleantags.lua") -- Main -> Default -- Top -> an8 -- italics -> i1 @@ -11,12 +12,13 @@ script_version = "1" function add_tags(line) local txt = line.text local style = line.style - if style:find("Top") then - line.text="{\\an8}"..txt - end if style:find("Italics") then - line.text="{\\i1}"..txt + txt="{\\i1}"..txt + end + if style:find("Top") then + txt="{\\an8}"..txt end + line.text = cleantags(txt) return line end |