X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Foutput-svg.scm;h=653664122cd5d20befb84ed84fa4147ec6690840;hb=2bbacb364aa29041af9cbbbd32cfad2e8e387cb3;hp=78bda3c35b8c88f376fadc6f9d471597ca1ba482;hpb=b5b3e36d04fe1a35c9ffc5671b1351394783fbf6;p=lilypond.git diff --git a/scm/output-svg.scm b/scm/output-svg.scm index 78bda3c35b..653664122c 100644 --- a/scm/output-svg.scm +++ b/scm/output-svg.scm @@ -61,10 +61,15 @@ "c = close" (format #f "\n" entity)) -(define (start-enclosing-id-node s) - (string-append "\n")) - -(define (end-enclosing-id-node) +(define (start-group-node attributes) + (define attributes-string + (string-concatenate + (map (lambda (item) + (ly:format " ~a=\"~a\"" (car item) (cdr item))) + attributes))) + (string-append "\n")) + +(define (end-group-node) "\n") (define-public (comment s)