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.
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.