From: Mats Bengtsson Date: Thu, 3 Aug 2006 13:58:03 +0000 (+0000) Subject: * python/convertrules.py: Fix indentation bug that broke X-Git-Tag: cvs/HEAD~193 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b162ebd5e7d9f894ffc258a9a56afb9ef6d38249;p=lilypond.git * python/convertrules.py: Fix indentation bug that broke conversion of files older than 1.3.117. --- diff --git a/ChangeLog b/ChangeLog index 6be3bec081..5de116073a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-08-03 Mats Bengtsson + + * python/convertrules.py: Fix indentation bug that broke + conversion of files older than 1.3.117. + 2006-08-02 Han-Wen Nienhuys * lily/*-engraver.cc: convert all try_music functions in diff --git a/python/convertrules.py b/python/convertrules.py index d670696b76..f034d1aa6b 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -623,13 +623,13 @@ def conv (str): lastx = x return s - def regularize_dollar_reference (match): - return regularize_id (match.group (1)) - def regularize_assignment (match): - return '\n' + regularize_id (match.group (1)) + ' = ' - str = re.sub ('\$([^\t\n ]+)', regularize_dollar_reference, str) - str = re.sub ('\n([^ \t\n]+)[ \t]*= *', regularize_assignment, str) - return str + def regularize_dollar_reference (match): + return regularize_id (match.group (1)) + def regularize_assignment (match): + return '\n' + regularize_id (match.group (1)) + ' = ' + str = re.sub ('\$([^\t\n ]+)', regularize_dollar_reference, str) + str = re.sub ('\n([^ \t\n]+)[ \t]*= *', regularize_assignment, str) + return str conversions.append (((1,3,117), conv, 'identifier names: $!foo_bar_123 -> xfooBarABC'))