diff options
author | Ben Lee-Cohen | 2022-05-04 02:17:08 +0000 |
---|---|---|
committer | GitHub | 2022-05-04 02:17:08 +0000 |
commit | 09a17e4fa3d0aa67e399c02c484a768d85acaac6 (patch) | |
tree | 60f097b309ee1897f150ccf321239b4f71b841b7 /xtask | |
parent | f59b3b91c86d8f92ce72a4bb873bbb6aaaa4d2a9 (diff) |
Making the 'set-option' command help more descriptive. (#2365)
* Making the 'set-option' command help more descriptive.
* Adding the generated docs
* Making the message multi-line
* Replace newline with break in generated docs
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs index ad120f4f..a4c69d70 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -106,7 +106,9 @@ pub mod md_gen { .collect::<Vec<_>>() .join(", "); - md.push_str(&md_table_row(&[names.to_owned(), cmd.doc.to_owned()])); + let doc = cmd.doc.replace("\n", "<br>"); + + md.push_str(&md_table_row(&[names.to_owned(), doc.to_owned()])); } Ok(md) |