]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/mudela-book.py
release: 1.2.9
[lilypond.git] / scripts / mudela-book.py
index bed9d1c12e7b99a3ba7aaa7f01666c981903d334..d33127e39fdcfc30a045466d917f265ea71fefee 100644 (file)
@@ -499,7 +499,7 @@ def advance_counters (counter, opts, str):
                        opts.append ('twocolumn')
                elif g  == 'onecolumn':
                        try:
-                               current_opts.remove ('twocolumn')
+                               opts.remove ('twocolumn')
                        except IndexError:
                                pass
                elif g == 'chapter':
@@ -534,7 +534,7 @@ def schedule_mudela_block (base, chunk, extra_opts):
        file_body = compose_full_body (body, opts)
        basename = base
        if __main__.use_hash:
-               basename = `hash (file_body)`
+               basename = `abs(hash (file_body))`
        updated = update_file (file_body, basename + '.ly')
        todo = [basename]                       # UGH.