* scm/display-lily.scm (tag->lily-string): the syntax for tags has
changed from \tag #'(a b) to \tag #'a \tag #'b
+2005-12-12 Nicolas Sceaux <nicolas.sceaux@free.fr>
+
+ * input/no-notation/display-lily-tests.ly (test):
+ * scm/display-lily.scm (tag->lily-string): the syntax for tags has
+ changed from \tag #'(a b) to \tag #'a \tag #'b
+
2005-12-12 Han-Wen Nienhuys <hanwen@xs4all.nl>
* Documentation/topdocs/NEWS.tely: strip out-www.
%% tags
\test #"" ##[ { \tag #'foo { c4 d } } #]
- \test #"" ##[ c-\tag #'(foo baz) -^ -. #]
+ \test #"" ##[ c-\tag #'foo -\tag #'baz -^ -. #]
%% Graces
\test #"" ##[ { \grace c8 d2 } #] % GraceMusic
new-method))
(define* (tag->lily-string expr #:optional (post-event? #f))
- (let ((tags (ly:music-property expr 'tags)))
- (cond ((null? tags)
- "")
- ((null? (cdr tags))
- (format #f "~a\\tag #'~a " (if post-event? "-" "") (car tags)))
- (else
- (format #f "~a\\tag #'(~a~{ ~a~}) " (if post-event? "-" "") (car tags) (cdr tags))))))
+ (format #f "~{~a ~}"
+ (map (lambda (tag)
+ (format #f "~a\\tag #'~a" (if post-event? "-" "") tag))
+ (ly:music-property expr 'tags))))
(define-public (music->lily-string expr)
"Print expr, a music expression, in LilyPond syntax"