[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Vertical spacing between wordwrap items within markup column
From: |
Werner LEMBERG |
Subject: |
Re: Vertical spacing between wordwrap items within markup column |
Date: |
Thu, 13 Apr 2023 05:11:14 +0000 (UTC) |
> Maybe I'm missing something here, but how can I make the space
> between items in a markup column regular? As you can see in the
> example, if the text is short so that there is no wrapping
> necessary, the space is fine. But the "a a a" item does wrap around
> and overlaps a bit with the "b b b" item on its second line. Any
> tips?
>
> %%%%%%%%%%%%%%
> \version "2.24.1"
> \markup {
> \column {
> \wordwrap-string "a a a a a a a a a a a a a a a a a a a a a a a a a a a a
> a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
> a a a a a"
> \wordwrap-string "b b b b b b b b b b b b b b b b b b b b b b b b b b b b
> b b"
> \wordwrap-string "c c c c c c c c c c c c c c c c c c c c c c c c c c c c
> c c"
> }
> }
> %%%%%%%%%%%%%%
This smells like a bug: `\wordwrap-string` returns a bunch of lines
spaced by `baseline-skip`, but no such skip is applied after the last
line, for whatever reason. Here is a shorter example.
```
\version "2.24.1"
\markup {
\override #'(line-width . 5)
\override #'(baseline-skip . 4)
\column {
\wordwrap-string "a a a a a a"
\wordwrap-string "b b b b b b"
}
}
```
Werner
RE: Re: Vertical spacing between wordwrap items within markup column, juergen . gruen, 2023/04/13