]> git.donarmstrong.com Git - lilypond.git/commitdiff
Docs: NR 3.1.3 Say when whitespace is required
authorTrevor Daniels <t.daniels@treda.co.uk>
Mon, 22 Jun 2009 09:00:16 +0000 (10:00 +0100)
committerTrevor Daniels <t.daniels@treda.co.uk>
Mon, 22 Jun 2009 09:00:16 +0000 (10:00 +0100)
Documentation/user/input.itely

index b20cc4ebf33679d5fe13165e64dc2c9c3e8a7a7f..2bf35cf51d0bc7c938bf148ae271f9acc341b075 100644 (file)
@@ -354,6 +354,27 @@ A multi-line comment delimited by @code{%@{ .. %@}}.
 
 @end itemize
 
+@cindex whitespace
+
+Whitespace between items in the input stream is generally ignored,
+and may be freely omitted or extended to enhance readability.
+However, whitespace should always be used in the following
+circumstances to avoid errors:
+
+@itemize
+@item Around every opening and closing curly bracket.
+@item After every command or variable, i.e. every item that
+begins with a @code{\} sign.
+@item After every item that is to be interpreted as a Scheme
+expression, i.e. every item that begins with a @code{#} sign.
+@item To separate all elements of a Scheme expression.
+@item In @code{lyricmode} to separate all the terms in both
+@code{\override} and @code{\set} commands.  In particular, spaces
+must be used around the dot and the equals sign in commands like
+@code{\override Score . LyricText #'font-size = #5} and before and
+after the entire command.
+
+@end itemize
 
 @seealso
 Learning Manual: