Skip to content

Maybe don't wrap HTML in comments #4931

Open

Description

@jnqnfe

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.

Activity

  1. added
    C-feature-requestCategory: a feature request (not decided/implemented)
    P-lowLow priority
    on Jul 26, 2022
  2. ytmimi commented on Jul 26, 2022

    @ytmimi
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: a feature request (not decided/implemented)P-lowLow priorityUO-wrap_commentsUnstable option: wrap_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