@@ -187,22 +187,21 @@ class DartDoc {
187187 writtenFiles.addAll (generator.writtenFiles.map (path.normalize));
188188 }
189189
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-
196190 verifyLinks (package, outputDir.path);
197191 int warnings = package.packageWarningCounter.warningCount;
198192 int errors = package.packageWarningCounter.errorCount;
199193 if (warnings == 0 && errors == 0 ) {
200- print ("no issues found" );
194+ print ("\n no issues found" );
201195 } else {
202- print ("found ${warnings } ${pluralize ('warning' , warnings )} "
196+ print ("\n found ${warnings } ${pluralize ('warning' , warnings )} "
203197 "and ${errors } ${pluralize ('error' , errors )}" );
204198 }
205199
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+
206205 if (package.libraries.isEmpty) {
207206 throw new DartDocFailure (
208207 "dartdoc could not find any libraries to document. Run `pub get` and try again." );
@@ -356,7 +355,7 @@ class DartDoc {
356355 final Set <String > visited = new Set ();
357356 final String start = 'index.html' ;
358357 visited.add (start);
359- print ( 'validating docs...' );
358+ stdout. write ( ' \n validating docs...' );
360359 _doCheck (package, origin, visited, start);
361360 _doOrphanCheck (package, origin, visited);
362361 }
@@ -517,7 +516,6 @@ class DartDoc {
517516 double seconds = _stopwatch.elapsedMilliseconds / 1000.0 ;
518517 print ("parsed ${libraries .length } ${pluralize ('file' , libraries .length )} "
519518 "in ${seconds .toStringAsFixed (1 )} seconds" );
520- print ('' );
521519 _stopwatch.reset ();
522520
523521 if (errors.isNotEmpty) {
0 commit comments