mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
uucore: fix help section doesn't render 3+ level headers
This commit is contained in:
parent
0e4a15aa61
commit
2f0ba77872
1 changed files with 1 additions and 1 deletions
|
@ -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::<Vec<_>>()
|
||||
.join("\n")
|
||||
.trim()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue