From 2f0ba7787299b474bb5c15aeb5ccdc0a31257970 Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski Date: Tue, 21 Mar 2023 19:09:12 +0100 Subject: [PATCH] uucore: fix help section doesn't render 3+ level headers --- src/uucore_procs/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uucore_procs/src/lib.rs b/src/uucore_procs/src/lib.rs index c1ef8bc75..0d8df7d9f 100644 --- a/src/uucore_procs/src/lib.rs +++ b/src/uucore_procs/src/lib.rs @@ -174,7 +174,7 @@ fn parse_help_section(section: &str, content: &str) -> String { .lines() .skip_while(|&l| !is_section_header(l, section)) .skip(1) - .take_while(|l| !l.starts_with("##")) + .take_while(|l| !l.starts_with("## ")) .collect::>() .join("\n") .trim()