Dear Pierre, I see a pattern there: Lily wants some padding between the bar line and the accidental. If the accidental is outside the staff, this is not required. In some cases, the accidental is outside but very close to the staff and Lily adds some padding. Perhaps the bounding box of the accidental is a bit larger than necessary or there is also a bit of "vertical padding", i.e. the accidental should not be too close to the bar line vertically.
I didn’t look at the internals and I am not saying that this doesn’t qualify as a bug/ugly . But it could be intentional. Cheers, Joram _______________________________________________ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond