Skip to content

Commit 0ba4adf

Browse files
committed
fix(man): match exact groff invocation used to generate pdu.1.man
Use `groff -Tutf8 -P-cbou -man` which matches the command that generated the checked-in pdu.1.man file. The previous invocation used separate -P flags and extra options (-K utf8, GROFF_NO_SGR) that could produce subtly different output on CI. https://claude.ai/code/session_01CrXuWDMVQsiUBoy6ceACsF
1 parent 527a375 commit 0ba4adf

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)