From 09a17e4fa3d0aa67e399c02c484a768d85acaac6 Mon Sep 17 00:00:00 2001 From: Ben Lee-Cohen Date: Tue, 3 May 2022 22:17:08 -0400 Subject: 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--- xtask/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xtask') 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::>() .join(", "); - md.push_str(&md_table_row(&[names.to_owned(), cmd.doc.to_owned()])); + let doc = cmd.doc.replace("\n", "
"); + + md.push_str(&md_table_row(&[names.to_owned(), doc.to_owned()])); } Ok(md) -- cgit v1.2.3-70-g09d2