]> git.donarmstrong.com Git - lilypond.git/commitdiff
convert-ly: stricter pattern for one rule
authorKeith OHara <k-ohara5a5a@oco.net>
Wed, 30 Oct 2013 06:58:47 +0000 (23:58 -0700)
committerKeith OHara <k-ohara5a5a@oco.net>
Wed, 30 Oct 2013 06:58:47 +0000 (23:58 -0700)
python/convertrules.py

index 91619737678fc3c130dcce4b8d6afa5266e0010d..e2eb3baa4ac5735055ece16dd52d2b90e50a0276 100644 (file)
@@ -3667,7 +3667,7 @@ def conv(str):
 def conv(str):
     str = re.sub (r"\\stringTuning\s*\\notemode(\s*)@?\{\s*(.*?)\s*@?}",
                   r"\\stringTuning\1\2", str)
-    if re.search (r'\bstaff-padding\b', str):
+    if re.search (r'[^-\w]staff-padding[^-\w]', str):
         stderr_write (NOT_SMART % "staff-padding")
         stderr_write (_ ("Staff-padding now controls the distance to the baseline, not the nearest point."))
     return str