From 17f198755bd932e28b951f36c34422235536ff03 Mon Sep 17 00:00:00 2001 From: Neil Puttock Date: Mon, 23 Jun 2008 18:20:24 +0100 Subject: [PATCH] Add noragged-right fragment option. --- Documentation/user/lilypond-book.itely | 5 +++++ scripts/lilypond-book.py | 3 +++ 2 files changed, 8 insertions(+) diff --git a/Documentation/user/lilypond-book.itely b/Documentation/user/lilypond-book.itely index 46fbee3839..8abed05d52 100644 --- a/Documentation/user/lilypond-book.itely +++ b/Documentation/user/lilypond-book.itely @@ -556,6 +556,11 @@ option is present. It is also the default for the @code{lilypond} environment if the @code{fragment} option is set, and no line width is explicitly specified. +@item noragged-right +For single-line snippets, allow the staff length to be stretched to +equal that of the line width, i.e., @code{ragged-right = ##f} is +added to the LilyPond snippet. + @c does this option still exist in lilypond? -jm @item packed Produce lines with packed spacing, i.e., @code{packed = ##t} is added diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 63f075a149..8e14256ccb 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -235,6 +235,7 @@ LILYQUOTE = 'lilyquote' NOFRAGMENT = 'nofragment' NOINDENT = 'noindent' NOQUOTE = 'noquote' +NORAGGED_RIGHT = 'noragged-right' NOTES = 'body' NOTIME = 'notime' OUTPUT = 'output' @@ -562,6 +563,8 @@ ly_options = { RAGGED_RIGHT: r'''ragged-right = ##t''', + NORAGGED_RIGHT: r'''ragged-right = ##f''', + PACKED: r'''packed = ##t''', }, -- 2.39.5