Skip to content

wrap_comments wraps too early #5890

Open
@benediktsatalia

Description

@benediktsatalia

I have a very simple example where using wrap_comments lead to the doc line being wrapped even if it is exactly 80 characters.

/**
 * A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A
 */
fn main() {}

I played around with comment_width and it wrapped this line even with comment_width = 83 but stopped wrapping with 84 so somehow the wrapping is off by 4 here.

Also interesting if I do the same with 100 characters and comment_width = 100 it also wraps and if I increase the comment_width it still wraps always, regardless how high I set comment_width.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions