|
From: | K.L. |
Subject: | Re: Empty markup lines behavior change (maybe regression) in dev (2.21.7) than stable (2.20.0) |
Date: | Thu, 8 Oct 2020 18:03:44 +0800 |
On 2020-10-07 8:20 pm, Andrew Bernard wrote:
> If you use { " " } you will get a blank line, in 2.21.6. I don't know
> about
> other versions, I only use one.
Something else must be going on, as I cannot reproduce the claimed
behavior.
I am seeing consistently that \line { "" } results in an empty-stencil:
%%%%
\version "2.18.2"
#(format #t "\nversion=~s" (ly:version))
#(define-markup-command
(measure layout props arg)
(markup?)
(let* ((sten (interpret-markup layout props arg))
(xex (ly:stencil-extent sten X))
(yex (ly:stencil-extent sten Y)))
(format #t "\narg=~s\n\txex=~s\n\tyex=~s" arg xex yex)
sten))
\markup \measure \line { "" }
\markup \measure \line { " " }
\markup \measure \column { \line { "" } \line { "" } }
\markup \measure \column { \line { " " } \line { " " } }
%%%%
====
version=(2 18 2)
arg=(#<procedure line-markup (layout props args)> (""))
xex=(+inf.0 . -inf.0)
yex=(+inf.0 . -inf.0)
arg=(#<procedure line-markup (layout props args)> (" "))
xex=(0.0 . 0.614579527559055)
yex=(0.0 . 0.0)
arg=(#<procedure column-markup (layout props args)> ((#<procedure
line-markup (layout props args)> ("")) (#<procedure line-markup (layout
props args)> (""))))
xex=(+inf.0 . -inf.0)
yex=(+inf.0 . -inf.0)
arg=(#<procedure column-markup (layout props args)> ((#<procedure
line-markup (layout props args)> (" ")) (#<procedure line-markup (layout
props args)> (" "))))
xex=(0.0 . 0.614579527559055)
yex=(-3.0 . 0.0)
====
Same output for:
version=(2 19 55)
version=(2 20 0)
version=(2 21 6)
-- Aaron Hill
[Prev in Thread] | Current Thread | [Next in Thread] |