]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/convertrules.py
Remove head- and foot-separation.
[lilypond.git] / python / convertrules.py
index d1d393ae5f32013634dc954cf46d4caa3f7bdc2c..3ea4739db0d091dbe138b736d62dc0c6ea692029 100644 (file)
@@ -3092,6 +3092,22 @@ def conv(str):
 
     return str
 
+@rule ((2, 13, 40),
+    _ ("Remove \\paper variables head-separation and foot-separation."))
+def conv(str):
+    if re.search(r'head-separation', str):
+        stderr_write("\n")
+        stderr_write(NOT_SMART % ("head-separation.\n"))
+        stderr_write(_ ("Adjust settings for top-system-spacing instead.\n"))
+        stderr_write(UPDATE_MANUALLY)
+    if re.search(r'foot-separation', str):
+        stderr_write("\n")
+        stderr_write(NOT_SMART % ("foot-separation.\n"))
+        stderr_write(_ ("Adjust settings for last-bottom-spacing instead.\n"))
+        stderr_write(UPDATE_MANUALLY);
+
+    return str
+
 
 # Guidelines to write rules (please keep this at the end of this file)
 #