Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rustdoc markdown blockquote broken when formatting #5157

Closed
jhelovuo opened this issue Dec 29, 2021 · 1 comment · Fixed by #5160
Closed

Rustdoc markdown blockquote broken when formatting #5157

jhelovuo opened this issue Dec 29, 2021 · 1 comment · Fixed by #5160
Labels
a-comments only-with-option requires a non-default option value to reproduce

Comments

@jhelovuo
Copy link

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)

@ytmimi
Copy link
Contributor

ytmimi commented Dec 29, 2021

Thanks for submitting the report!

I'm able to reproduce this using wrap_comments=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-comments only-with-option requires a non-default option value to reproduce
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants