Skip to content

Commit ab5d791

Browse files
committed
fix spacing for header
1 parent abed7ac commit ab5d791

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/html_generator.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,8 @@ List<Subnav> _gatherSubnavForClass(Class clazz) {
601601
}
602602

603603
String _layoutTitle(String name, String kind, bool isDeprecated) {
604-
if (kind.isEmpty) return name;
604+
if (kind.isEmpty) kind =
605+
'&nbsp;'; // Ugly. fixes https://github.com/dart-lang/dartdoc/issues/695
605606
String str = '<div class="kind">$kind</div>';
606607
if (!isDeprecated) return '${str} ${name}';
607608
return '${str} <span class="deprecated">$name</span>';

0 commit comments

Comments
 (0)