X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=scripts%2Fmysql2sql;h=98c5f10e6eeee216120facaa3b53250ab47decdb;hb=19e5f010328b314a5ead4468ba11b1fcb27fe42f;hp=3bb03028d9d334b192fd27904e043fbdd74b4124;hpb=ad12dfd9c03a4f6bbd03d22238b6399ab09962ed;p=sqlconvert.git 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: