@@ -187,22 +187,21 @@ class DartDoc {
187
187
writtenFiles.addAll (generator.writtenFiles.map (path.normalize));
188
188
}
189
189
190
- double seconds = _stopwatch.elapsedMilliseconds / 1000.0 ;
191
- print (
192
- "documented ${package .libraries .length } librar${package .libraries .length == 1 ? 'y' : 'ies' } "
193
- "in ${seconds .toStringAsFixed (1 )} seconds" );
194
- print ('' );
195
-
196
190
verifyLinks (package, outputDir.path);
197
191
int warnings = package.packageWarningCounter.warningCount;
198
192
int errors = package.packageWarningCounter.errorCount;
199
193
if (warnings == 0 && errors == 0 ) {
200
- print ("no issues found" );
194
+ print ("\n no issues found" );
201
195
} else {
202
- print ("found ${warnings } ${pluralize ('warning' , warnings )} "
196
+ print ("\n found ${warnings } ${pluralize ('warning' , warnings )} "
203
197
"and ${errors } ${pluralize ('error' , errors )}" );
204
198
}
205
199
200
+ double seconds = _stopwatch.elapsedMilliseconds / 1000.0 ;
201
+ print (
202
+ "\n documented ${package .libraries .length } librar${package .libraries .length == 1 ? 'y' : 'ies' } "
203
+ "in ${seconds .toStringAsFixed (1 )} seconds" );
204
+
206
205
if (package.libraries.isEmpty) {
207
206
throw new DartDocFailure (
208
207
"dartdoc could not find any libraries to document. Run `pub get` and try again." );
@@ -356,7 +355,7 @@ class DartDoc {
356
355
final Set <String > visited = new Set ();
357
356
final String start = 'index.html' ;
358
357
visited.add (start);
359
- print ( 'validating docs...' );
358
+ stdout. write ( ' \n validating docs...' );
360
359
_doCheck (package, origin, visited, start);
361
360
_doOrphanCheck (package, origin, visited);
362
361
}
@@ -517,7 +516,6 @@ class DartDoc {
517
516
double seconds = _stopwatch.elapsedMilliseconds / 1000.0 ;
518
517
print ("parsed ${libraries .length } ${pluralize ('file' , libraries .length )} "
519
518
"in ${seconds .toStringAsFixed (1 )} seconds" );
520
- print ('' );
521
519
_stopwatch.reset ();
522
520
523
521
if (errors.isNotEmpty) {
0 commit comments