From 6c9b2025b984b80306003356eb23fb417be05a73 Mon Sep 17 00:00:00 2001 From: Paul Morris Date: Tue, 10 Nov 2015 16:19:26 -0500 Subject: [PATCH] Issue 4504/2 convert-ly rule: whiteout-box --> whiteout --- python/convertrules.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python/convertrules.py b/python/convertrules.py index f86b90ba4e..444d04d461 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -3855,6 +3855,13 @@ def conv(str): r"\\once \1\2", str) return str +@rule ((2, 19, 32), r"whiteout-box -> whiteout") +def conv(str): + str = re.sub (r"\\whiteout-box(?![a-z_-])", r"\\whiteout", str) + str = re.sub (r"\b\.whiteout-box(?![a-z_-])\b", r".whiteout", str) + str = re.sub (r"#'whiteout-box(?![a-z_-])\b", r"#'whiteout", str) + return str + # Guidelines to write rules (please keep this at the end of this file) # # - keep at most one rule per version; if several conversions should be done, -- 2.39.2