]> git.donarmstrong.com Git - lilypond.git/commitdiff
Doc: CG add rule for using { } with .ly examples
authorJames Lowe <james.lowe@datacore.com>
Thu, 20 May 2010 16:00:00 +0000 (17:00 +0100)
committerGraham Percival <graham@percival-music.ca>
Thu, 20 May 2010 16:12:50 +0000 (17:12 +0100)
Documentation/contributor/doc-work.itexi

index cdd06f29c9583cad82ebea24706c0a7f1250b082..461e19f71ee4e3f9f7aba75ab2e2f6cdd796b0cf 100644 (file)
@@ -358,6 +358,24 @@ If possible, end with a complete bar.
 Comments should go on their own line, and be placed before
 the line(s) to which they refer.
 
+@item
+For clarity, always use @{ @} marks even if they are not technically
+required; ie
+
+not:
+\context Voice \repeat unfold 2 \relative c' {
+  c2 d
+}
+
+but instead:
+\context Voice {
+  \repeat unfold 2 {
+    \relative c' {
+      c2 d
+    }
+  }
+}
+
 @item
 Add extra spaces around @{ @} marks; ie