Style conventions, copyright and AUTHORS.
diff --git a/pkgs/markdown/AUTHORS b/pkgs/markdown/AUTHORS new file mode 100644 index 0000000..74ad8d8 --- /dev/null +++ b/pkgs/markdown/AUTHORS
@@ -0,0 +1,8 @@ +# Below is a list of people and organizations that have contributed +# to the Dart project. Names should be added to the list like so: +# +# Name/Organization <email address> + +Google Inc. + +David Peek <ninjascript@gmail.com>
diff --git a/pkgs/markdown/lib/src/classify/dart.dart b/pkgs/markdown/lib/src/classify/dart.dart index 2b67f9c..bf9c942 100644 --- a/pkgs/markdown/lib/src/classify/dart.dart +++ b/pkgs/markdown/lib/src/classify/dart.dart
@@ -1,3 +1,7 @@ +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + library classify; import 'package:analyzer_experimental/src/generated/java_core.dart'; @@ -27,7 +31,9 @@ while (token.type != TokenType.EOF) { // If not a token and not whitespace assume comment. var comment = src.slice(pos, token.offset); - if (comment.trim().length > 0) out.add('<span class="${Classification.COMMENT}">$comment</span>'); + if (comment.trim().length > 0) { + out.add('<span class="${Classification.COMMENT}">$comment</span>'); + } else out.add(comment); pos = token.end;