-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow spanning description content across lines like Markdown (#1254)
This adds support for splitting content of command and group descriptions across multiple lines for readability like in the Markdown format. To be specific, when several `#[description]` attributes are provided to the `#[command]` and `#[group]` macros, their content is stitched together to a single string according to the following new rules: - If the content of a `#[description]` consists of just whitespace or is empty, a plain newline (`'\n'`) is appended to the string. - If the content isn't just whitespace nor empty, a space (`' '`) and the content are appended to the string.
- Loading branch information
Showing
2 changed files
with
22 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters