From 3f29f260a05e3fc3b0f16a1bf1495b90ac032026 Mon Sep 17 00:00:00 2001 From: Neil Puttock Date: Mon, 1 Feb 2010 00:25:42 +0000 Subject: [PATCH] Fix lilypond-book option glitch --- scripts/lilypond-book.py | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index ac3969c..632b723 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -1202,13 +1202,20 @@ left-margin-default right-margin-default)" override[LINE_WIDTH] = texinfo_line_widths['@smallbook'] override.update (default_ly_options) + def not_processing_independent (opt): + for name in PROCESSING_INDEPENDENT_OPTIONS: + if opt.startswith (name): + return False + + return True + option_list = [] for option in self.get_option_list (): - for name in PROCESSING_INDEPENDENT_OPTIONS: - if not option.startswith (name): - option_list.append (option) + option_list.append (option) + warning ("option_string before: %s" % option_list) + option_list = filter (not_processing_independent, option_list) option_string = ','.join (option_list) - + warning ("option_string: %s" % option_string) compose_dict = {} compose_types = [NOTES, PREAMBLE, LAYOUT, PAPER] for a in compose_types: -- 1.6.3.3