Dear LilyPond developers,

I am not sure if this is a bug or not, but judging by the documentation, the Scheme function `ly:book-scores` should only return scores. Instead, it includes other top-level elements like markup. In the attached example, I would have expected it to print only `#<Score>`, but I see the `(This is not a score!)` as well. Is this a desired behaviour?

Thanks in advance.

Jan "Singon" Slany
\version "2.26"

\relative c' { c4 d e f g }

\markup "This is not a score!"

#(define toplevel-book-handler (lambda (book)
    (for-each
        (lambda (score) (format #t "\n* ~a" score))
        (ly:book-scores book))))

Reply via email to