mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 12:37:49 +00:00
when help item has an \n, translate it to a <br />
example: https://uutils.github.io/coreutils-docs/user/utils/ls.html / classify
This commit is contained in:
parent
716444c7b1
commit
be0b77e7a7
1 changed files with 5 additions and 1 deletions
|
@ -201,7 +201,11 @@ fn write_options(w: &mut impl Write, app: &App) -> io::Result<()> {
|
||||||
write!(w, "</code>")?;
|
write!(w, "</code>")?;
|
||||||
}
|
}
|
||||||
writeln!(w, "</dt>")?;
|
writeln!(w, "</dt>")?;
|
||||||
writeln!(w, "<dd>\n\n{}\n\n</dd>", arg.get_help().unwrap_or_default())?;
|
writeln!(
|
||||||
|
w,
|
||||||
|
"<dd>\n\n{}\n\n</dd>",
|
||||||
|
arg.get_help().unwrap_or_default().replace("\n", "<br />")
|
||||||
|
)?;
|
||||||
}
|
}
|
||||||
writeln!(w, "</dl>\n")
|
writeln!(w, "</dl>\n")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue