From: Paul Morris Date: Tue, 10 Nov 2015 21:19:26 +0000 (-0500) Subject: Issue 4504/2 convert-ly rule: whiteout-box --> whiteout X-Git-Tag: release/2.19.32-1~13^2~6 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6c9b2025b984b80306003356eb23fb417be05a73;p=lilypond.git Issue 4504/2 convert-ly rule: whiteout-box --> whiteout --- 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,