Skip to content

Commit b12de32

Browse files
committed
fix(man): simplify groff invocation to match working command
Use `groff -Tutf8 -P-cbou -man` which produces clean plain-text output without ANSI escapes or backspace overstrikes. https://claude.ai/code/session_01CrXuWDMVQsiUBoy6ceACsF
1 parent e5eae1d commit b12de32

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

cli/man_page.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ fn man_path(page_num: u8) -> String {
6262
fn render_man_output(page_num: u8) -> Result<String, String> {
6363
let roff_file = roff_path(page_num);
6464
let output = Command::new("groff")
65-
.args([
66-
"-man", "-T", "utf8", "-K", "utf8", "-P", "-c", "-P", "-b", "-P", "-u",
67-
])
68-
.env("GROFF_NO_SGR", "1")
65+
.args(["-man", "-Tutf8", "-P-cbou"])
6966
.arg(format!("-rLL={LINE_LENGTH}n"))
7067
.arg(format!("./{roff_file}"))
7168
.output()

0 commit comments

Comments
 (0)