abcjs icon indicating copy to clipboard operation
abcjs copied to clipboard

Repeat barline in wrap mode

Open SirPL opened this issue 3 years ago • 1 comments

I use abcjs with wrap option to adapt my site for PC and mobile devices.

I can't find a way to correctly use mid-piece repeats when wrap is enabled. The most problematic part is when score is wrapped before the beginning of repeat.

When repeat starts in the next line, then the previous one should end with a single barline.

If I use |: only, then there is no barline at the end of line:

C D E F | C D E F |: G A B c | G A B c :|

image

If I add | before |:, then additional barline may appear if piece is wrapped at a different point.

C D E F | C D E F |
|: G A B c | G A B c :|

image

There's similar problem with both-sides repeat :||:

SirPL avatar Jul 14 '21 10:07 SirPL

That's definitely a bug. I'll put it on my list. Thanks for the report.

paulrosen avatar Jul 17 '21 14:07 paulrosen