-
Notifications
You must be signed in to change notification settings - Fork 972
Closed
Labels
A-commentsArea: commentsArea: commentsI-poor-formattingIssue: poor formattingIssue: poor formattingonly-with-optionRequires a non-default option value to reproduceRequires a non-default option value to reproduce
Description
It seems that rusfmt wants comment lines to fit into 80 characters. To enforce that, it currently does hard wrapping whereas for comments, soft wrapping looks just nicer.
Example:
//! Terminal formatting library.
//!
//! This crate provides the `Terminal` trait, which abstracts over an [ANSI
//! Terminal][ansi] to provide color printing, among other things. There are two implementations,
//! the `TerminfoTerminal`, which uses control characters from a
//! [terminfo][ti] database, and `WinConsole`, which uses the [Win32 Console
//! API][win].
//!
//! # Examples
Becomes:
//! Terminal formatting library.
//!
//! This crate provides the `Terminal` trait, which abstracts over an [ANSI
//! Terminal][ansi] to provide color printing, among other things. There are
//! two implementations,
//! the `TerminfoTerminal`, which uses control characters from a
//! [terminfo][ti] database, and `WinConsole`, which uses the [Win32 Console
//! API][win].
//!
//! # Examples
Instead of:
//! Terminal formatting library.
//!
//! This crate provides the `Terminal` trait, which abstracts over an [ANSI
//! Terminal][ansi] to provide color printing, among other things. There are two
//! implementations, the `TerminfoTerminal`, which uses control characters from
//! a [terminfo][ti] database, and `WinConsole`, which uses the [Win32 Console
//! API][win].
//!
//! # Examples
Metadata
Metadata
Assignees
Labels
A-commentsArea: commentsArea: commentsI-poor-formattingIssue: poor formattingIssue: poor formattingonly-with-optionRequires a non-default option value to reproduceRequires a non-default option value to reproduce