]> git.donarmstrong.com Git - lilypond.git/commitdiff
Doc: CG updated rules for {} usage in ly examples
authorJames Lowe <james.lowe@datacore.com>
Thu, 20 May 2010 21:08:42 +0000 (22:08 +0100)
committerGraham Percival <graham@percival-music.ca>
Fri, 21 May 2010 14:02:15 +0000 (15:02 +0100)
Added new guidelines and improved example of previous one.

Documentation/contributor/doc-work.itexi

index cdd06f29c9583cad82ebea24706c0a7f1250b082..bf0e31606695542455fb0465f689cd397ad847dd 100644 (file)
@@ -359,10 +359,32 @@ Comments should go on their own line, and be placed before
 the line(s) to which they refer.
 
 @item
-Add extra spaces around @{ @} marks; ie
+For clarity, always use @{ @} marks even if they are not technically
+required; ie
 
 @example
-not:          \chordmode @{c e g@}
+not:
+
+\context Voice \repeat unfold 2 \relative c' @{
+  c2 d
+@}
+
+but instead:
+
+\context Voice @{
+  \repeat unfold 2 @{
+    \relative c' @{
+      c2 d
+    @}
+  @}
+@}
+@end example
+
+@item
+Add a space around @{ @} marks; ie
+
+@example
+not:          \chordmode@{c e g@}
 but instead:  \chordmode @{ c e g @}
 @end example