Thanks so much for looking into this! http://codereview.appspot.com/4888046/diff/1/python/book_snippets.py File python/book_snippets.py (left): http://codereview.appspot.com/4888046/diff/1/python/book_snippets.py#oldcode424 python/book_snippets.py:424: if type ...
12 years, 8 months ago
(2011-08-15 21:34:16 UTC)
#1
Thanks so much for looking into this!
http://codereview.appspot.com/4888046/diff/1/python/book_snippets.py
File python/book_snippets.py (left):
http://codereview.appspot.com/4888046/diff/1/python/book_snippets.py#oldcode424
python/book_snippets.py:424: if type == 'lilypond':
This part is only executed if we do not have a line width (line 404). But I
thought we were getting the line width from latex? Does that info not get
stored in self.option_dict for some reason?
I'm content to trust you that it works, but I'm having trouble following the
logic of has_line_width and self.option_dict[LINE_WIDTH].
http://codereview.appspot.com/4888046/diff/1/python/book_snippets.py File python/book_snippets.py (left): http://codereview.appspot.com/4888046/diff/1/python/book_snippets.py#oldcode424 python/book_snippets.py:424: if type == 'lilypond': On 2011/08/15 21:34:16, Graham Percival ...
12 years, 8 months ago
(2011-08-15 21:50:51 UTC)
#2
http://codereview.appspot.com/4888046/diff/1/python/book_snippets.py
File python/book_snippets.py (left):
http://codereview.appspot.com/4888046/diff/1/python/book_snippets.py#oldcode424
python/book_snippets.py:424: if type == 'lilypond':
On 2011/08/15 21:34:16, Graham Percival wrote:
> This part is only executed if we do not have a line width (line 404).
Nope. In line 404 the dictionary contains just the explicitly given options. The
default (e.g. auto-detected from LaTeX) are then later inserted in line 412.
has_line_width == True means that line-width was explicitly given as a snippet
option.
> But I
> thought we were getting the line width from latex? Does that info not get
> stored in self.option_dict for some reason?
That's what lines 410-412 are doing.
> I'm content to trust you that it works, but I'm having trouble following the
> logic of has_line_width and self.option_dict[LINE_WIDTH].
That's why I added those two comments in lines 404 and 410 ;-)
Issue 4888046: Fix 1816: Lilypond-Book: don't clear the auto-detected line-with, rather modify it
(Closed)
Created 12 years, 8 months ago by Reinhold
Modified 12 years, 7 months ago
Reviewers: Graham Percival (old account)
Base URL:
Comments: 2