[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lilypond sensitivity to whitespace
From: |
Trevor Daniels |
Subject: |
Re: Lilypond sensitivity to whitespace |
Date: |
Thu, 11 Jun 2009 09:49:25 +0100 |
Nick Payne wrote Wednesday, June 10, 2009 11:55 PM
Is there anywhere in the documentation that states where
whitespace *is*
required? I was getting a warning in my console output: "warning:
More
alternatives than repeats. Junking excess alternatives", and I
couldn't see
what could be causing this. I eventually found that that warning
was caused
by having no space between ] and } in one of the alternatives.
i.e.
{g'8[ g g g g g]}
instead of
{g'8[ g g g g g] }
As making that change got rid of the warning.
The only mention I could find regarding whitespace was s.2.1.3 of
the
learning manual, which doesn't really cover this case.
There is advice in Learning Manual 2.1.3 to surround
braces with whitespace:
"The braces should be surrounded by a space unless
they are at the beginning or end of a line to avoid
ambiguities."
However, I've just added a further paragraph to that
section to emphasise that whitespace can always be
added, but not eliminated, especially round braces.
Nick
Trevor
Re: Lilypond sensitivity to whitespace, Graham Percival, 2009/06/11