diff --git a/bin/pre_script.dart b/bin/pre_script.dart index 1d89b76..658280b 100644 --- a/bin/pre_script.dart +++ b/bin/pre_script.dart @@ -176,7 +176,8 @@ void walkPath(FileSystemEntity path) { operations.forEach((operation) { if (operation.commented && - !lines[operation.lineNumber - 1].startsWith(_commentReg)) + !lines[operation.lineNumber - 1].startsWith(_commentReg) && + lines[operation.lineNumber - 1].trim().length > 0) lines[operation.lineNumber - 1] = '${' ' * operation.indent}// ${lines[operation.lineNumber - 1].substring(operation.indent)}'; else if (!operation.commented &&