Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.8.1+3

* More redundant new lines elimination.

## 0.8.1+2

* Eliminate redundant new lines in the core builder. These were almost removed
Expand Down
6 changes: 2 additions & 4 deletions lib/src/builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class _Builder extends Builder {
},
_isStandalone = isStandalone,
formatOutput = formatOutput ?? _formatter.format,
_header = header ?? defaultFileHeader {
_header = (header ?? defaultFileHeader).trim() {
if (_generatedExtension == null) {
throw new ArgumentError.notNull('generatedExtension');
}
Expand Down Expand Up @@ -107,7 +107,6 @@ class _Builder extends Builder {
}
contentBuffer.writeln();
contentBuffer.writeln('part of $name;');
contentBuffer.writeln();
}

for (var output in generatedOutputs) {
Expand Down Expand Up @@ -226,7 +225,6 @@ Stream<GeneratedOutput> _generate(LibraryElement library,

final _formatter = new DartFormatter();

const defaultFileHeader = '''// GENERATED CODE - DO NOT MODIFY BY HAND
''';
const defaultFileHeader = '// GENERATED CODE - DO NOT MODIFY BY HAND';

final _headerLine = '// '.padRight(77, '*');
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: source_gen
version: 0.8.1+2
version: 0.8.1+3
author: Dart Team <misc@dartlang.org>
description: Automated source code generation for Dart.
homepage: https://github.com/dart-lang/source_gen
Expand Down