Skip to content

wrap_comments breaks markdown formatting #627

Closed
@mrmonday

Description

@mrmonday

Given the following:

//! This is a list:
//!  * Outer
//!  * Outer
//!   * Inner
//!   * Inner with lots of text so that it could be reformatted something something something
fn main() {
}

rustfmt, with wrap_comments set to true, is reformatted as:

//! This is a list:
//!  * Outer
//!  * Outer
//!   * Inner
//! * Inner with lots of text so that it could be reformatted something
//! something something
fn main() {
}

Notice that the inner bullet point is no longer part of either list.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions