frmatthew / exsurge

A JavaScript library for rendering Gregorian Chant in square note notation
MIT License
54 stars 13 forks source link

Don't throw an exception if a brace above notes spans a line break #77

Closed bbloomf closed 7 years ago

bbloomf commented 8 years ago

It was throwing an exception and crashing if the end brace note wasn't able to fit on the same line as its start brace. This commit keeps it from crashing, but I think it probably ought to check when laying out the lines and if the first element that will be on a new line contains an end brace, then it should find its start brace and end the line just before the element with the start brace.