close
Skip to content

Rustdoc markdown blockquote broken when formatting #5157

Description

@jhelovuo

Block quotes are marked by > at the beginning of line. They are broken when wrapping long lines.

Original:

/// > For each sample received, the middleware internally maintains a sample_state relative to each DataReader. The sample_state
/// > can either be READ or NOT_READ.

Result of cargo +nightly fmt:

/// > For each sample received, the middleware internally maintains a
/// sample_state relative to each DataReader. The sample_state > can either be
/// READ or NOT_READ.

Expected result:

/// > For each sample received, the middleware internally maintains a
/// > sample_state relative to each DataReader. The sample_state can either be
/// > READ or NOT_READ.

cargo 1.59.0-nightly (fcef61230 2021-12-17)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-commentsArea: commentsonly-with-optionRequires a non-default option value to reproduce

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions