From: Oleg Broytman Date: Thu, 8 Sep 2016 22:37:06 +0000 (+0300) Subject: Condense a sequence of newlines after a /*! directive */; X-Git-Tag: 0.0.6~29 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=ba77a72dda60df0d20f8493559382b8f756c61ba;p=sqlconvert.git Condense a sequence of newlines after a /*! directive */; --- diff --git a/ChangeLog b/ChangeLog index a32122a..597b210 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Version 0.0.6 (2016-09-??) + + Condense a sequence of newlines after a /*! directive */; + Version 0.0.5 (2016-09-07) Remove /*! directives */; and newlines after them. diff --git a/scripts/mysql2sql b/scripts/mysql2sql index 3bb0302..98c5f10 100755 --- a/scripts/mysql2sql +++ b/scripts/mysql2sql @@ -51,9 +51,8 @@ def main(infile, encoding, outfile, output_encoding, use_pbar): if grouper.statements: for statement in grouper.get_statements(): if got_directive and is_newline_statement(statement): - # Replace a sequence of newlines after a /*! directive */; - # with one newline - #outfile.write(u'\n') + # Condense a sequence of newlines after a /*! directive */; + got_directive = False continue got_directive = is_directive_statement(statement) if got_directive: