-
Notifications
You must be signed in to change notification settings - Fork 133
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 comment specification:
For each line that begins with ///, the parser removes the three slashes and all leading whitespace to produce the documentation text. Exception: inside fenced code blocks (```), whitespace after the leading /// is preserved to maintain code formatting.
The only exception is a fenced code blocks. But in case of code span (`) leading whitespaces are also preserved.
Example.
/// `
/// main() {
/// print('No leading whitespaces expected');
/// }
/// `dart doc output is:
`
main() {
print('No leading whitespaces expected');
}
`
Link to the appropriate failing test will be added later after landing of the pull request containing the test.
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)