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

Maybe don't wrap HTML in comments #4931

Open
jnqnfe opened this issue Jul 30, 2021 · 1 comment
Open

Maybe don't wrap HTML in comments #4931

jnqnfe opened this issue Jul 30, 2021 · 1 comment
Labels
feature-request only-with-option requires a non-default option value to reproduce p-low

Comments

@jnqnfe
Copy link

jnqnfe commented Jul 30, 2021

I'd rather rustfmt ignored HTML when considering wraping of comments.

-//! <div style="border-left:#bda000aa 5px solid; padding:0.5em 1em; margin:1em 0 0.6em 0; background-color:#aaa2">
-//! <h3 style="color:#bfa800; margin-top:0.2em">
 //! <div style="border-left:#bda000aa 5px solid; padding:0.5em 1em; margin:1em 0 0.6em 0;
 //! background-color:#aaa2"> <h3 style="color:#bfa800; margin-top:0.2em">

Version string: rustfmt 1.4.37-stable (a178d03 2021-07-26)
Project: https://github.com/jnqnfe/pulse-binding-rust
Specific file: https://github.com/jnqnfe/pulse-binding-rust/blob/master/pulse-binding/src/lib.rs
Ran against the master branch.

@ytmimi
Copy link
Contributor

ytmimi commented Jul 26, 2022

wrap_comments=true needs to be set in order to trigger this

@ytmimi ytmimi added the only-with-option requires a non-default option value to reproduce label Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request only-with-option requires a non-default option value to reproduce p-low
Projects
None yet
Development

No branches or pull requests

2 participants