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