/* it's possible that the last of my newly-split events overlaps the next repeat_penalty,
in which case we need to refilter that event */
- if (rep_index < repeat_penalties_.size () - 1
+ if (rep_index + 1 < repeat_penalties_.size ()
&& split.size ()
&& split.back ().duration_[RIGHT] > repeat_penalties_[rep_index+1].duration_[LEFT])
{
}
}
+ /* unless a manual break overrides it, allow a page turn at the end of the piece */
+ breakable_columns_.back ()->set_property ("page-turn-permission", ly_symbol2scm ("allow"));
+
/* apply the manual breaks */
for (vsize i = 0; i < forced_breaks_.size (); i++)
{
ADD_ACKNOWLEDGER (Page_turn_engraver, note_head);
ADD_TRANSLATOR (Page_turn_engraver,
- /* doc */ "Decide where page turns are allowed to go",
- /* create */ "",
+ /* doc */
+ "Decide where page turns are allowed to go.",
+
+ /* create */
+ "",
+
/* read */
"minimumPageTurnLength "
"minimumRepeatLengthForPageTurn ",
- /* write */ ""
+
+ /* write */
+ ""
);