]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/remove-empty-staves-with-rests.ly
Imported Upstream version 2.14.2
[lilypond.git] / input / regression / remove-empty-staves-with-rests.ly
diff --git a/input/regression/remove-empty-staves-with-rests.ly b/input/regression/remove-empty-staves-with-rests.ly
new file mode 100644 (file)
index 0000000..1f0aff8
--- /dev/null
@@ -0,0 +1,24 @@
+\version "2.14.0"
+\header {
+
+  texidoc = "
+Rests should not keep staves alive when
+@code{\RemoveEmptyStaffContext} is active.  The
+following example should have only one staff.
+"
+
+}
+
+\score {
+ <<
+   \new Staff {
+     \partial 16 r16 | R1 | r1
+   }
+   \new Staff {
+     \partial 16 c'16 | c'1 | c'1
+   }
+ >>
+
+ \layout { \context { \RemoveEmptyStaffContext
+     \override VerticalAxisGroup #'remove-first = ##t } }
+}