]> git.donarmstrong.com Git - lilypond.git/commitdiff
Avoid empty table in documentation of `Global' context.
authorWerner Lemberg <wl@gnu.org>
Mon, 2 Jul 2007 14:24:43 +0000 (16:24 +0200)
committerWerner Lemberg <wl@gnu.org>
Mon, 2 Jul 2007 14:24:43 +0000 (16:24 +0200)
scm/document-translation.scm

index 1671171dd3b2fbe55f2a333c98a2436700560e88..9db6bb4b882e31dff0ab0946657473eb60f648fa 100644 (file)
        "."
 
        (if (and (pair? props) (not (null? props)))
-          (string-append
-           "\n\nThis context sets the following properties:\n\n"
-           "@itemize @bullet\n"
-           (apply string-append (map document-property-operation props))
-           "@end itemize\n")
+          (let ((str (apply string-append (map document-property-operation
+                                               props))))
+            (if (string-null? str)
+                ""
+                (string-append
+                 "\n\nThis context sets the following properties:\n\n"
+                 "@itemize @bullet\n"
+                 str
+                 "@end itemize\n")))
           "")
        
        (if (null? accepts)