fix #29506: pedal line too short on single note

Pedals already implemented appropriate layout for most cases, but the single-note layout was messed up the same way as other textlines.  I added the same handling for that case that I used for other textlines.