From ab5d791fedc07b24bce9a5c6f7958a7ad2e84d63 Mon Sep 17 00:00:00 2001 From: Seth Ladd Date: Tue, 21 Jul 2015 09:06:38 -0700 Subject: [PATCH] fix spacing for header --- lib/src/html_generator.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/html_generator.dart b/lib/src/html_generator.dart index fe27c0c45c..83174637d4 100644 --- a/lib/src/html_generator.dart +++ b/lib/src/html_generator.dart @@ -601,7 +601,8 @@ List _gatherSubnavForClass(Class clazz) { } String _layoutTitle(String name, String kind, bool isDeprecated) { - if (kind.isEmpty) return name; + if (kind.isEmpty) kind = + ' '; // Ugly. fixes https://github.com/dart-lang/dartdoc/issues/695 String str = '
$kind
'; if (!isDeprecated) return '${str} ${name}'; return '${str} $name';