From ba77a72dda60df0d20f8493559382b8f756c61ba Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 9 Sep 2016 01:37:06 +0300 Subject: [PATCH] Condense a sequence of newlines after a /*! directive */; --- ChangeLog | 4 ++++ scripts/mysql2sql | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) 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: -- 2.39.2