-
Notifications
You must be signed in to change notification settings - Fork 137
Open
Labels
type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
According to the Dart doc specification
Any whitespace immediately following the asterisk is also stripped, if present.
The phrase “if present” assumes that the whitespace may be absent. In case
/**Text.
*More text.
*/
The expected output is
Text.
More text.
In fact, the asterisk became part of the comment.
Expected: 'Text.\n'
'More text.'
Actual: 'Text.\n'
' *More text.'
See https://github.com/dart-lang/dartdoc/blob/main/test/co19/block_based_doc_comments_test.dart, the tests test_contentNoTrailingWhitespace1() and test_contentNoTrailingWhitespace2().
Dart SDK version: 3.11.0-260.0.dev (dev) (Thu Dec 18 12:03:14 2025 -0800) on "windows_x64"
Metadata
Metadata
Assignees
Labels
type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)