[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
improving layout of ly-grammar.txt
From: |
Werner LEMBERG |
Subject: |
improving layout of ly-grammar.txt |
Date: |
Mon, 03 Aug 2009 08:54:27 +0200 (CEST) |
Carl,
can you modify yyout2grammar.py to avoid overlong lines? For example,
it currently generates
206 music_function_chord_body: music_function_identifier_musicless_prefix
EXPECT_MUSIC function_arglist_nonmusic chord_body_element
207 | music_function_identifier_musicless_prefix
function_arglist_nonmusi
which is ugly both in HTML and PDF output.
My suggestion is to align it as follows:
206 music_function_chord_body: music_function_identifier_musicless_prefix
EXPECT_MUSIC function_arglist_nonmusic
chord_body_element
207 | music_function_identifier_musicless_prefix
function_arglist_nonmusic
In other words, if a token (starting with the second one after the
colon or vertical bar) causes the line length to exceed, put it into
the next line, with a slight indentation relative to the first token
after the colon or vertical bar.
Werner
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- improving layout of ly-grammar.txt,
Werner LEMBERG <=