Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/docgen.rs')
| -rw-r--r-- | xtask/src/docgen.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xtask/src/docgen.rs b/xtask/src/docgen.rs index d31c396d..79ecfea1 100644 --- a/xtask/src/docgen.rs +++ b/xtask/src/docgen.rs @@ -36,7 +36,8 @@ pub fn typable_commands() -> Result<String, DynError> { "Description".to_owned(), ])); - let cmdify = |s: &str| format!("`:{}`", s); + // escape | so it doesn't get rendered as a column separator + let cmdify = |s: &str| format!("`:{}`", s.replace('|', "\\|")); for cmd in TYPABLE_COMMAND_LIST { let names = std::iter::once(&cmd.name) |