diff --git a/exports/pdu.1 b/exports/pdu.1 index a24ca958..93cfaef7 100644 --- a/exports/pdu.1 +++ b/exports/pdu.1 @@ -86,7 +86,7 @@ Width of the visualization Cannot be used with \fB\-\-column\-width\fR. .RE .TP -\fB\-\-column\-width\fR \fI\fR\fI \fR\fI\fR +\fB\-\-column\-width\fR \fI\fR \fI\fR Maximum widths of the tree column and width of the bar column .RS .PP diff --git a/src/man_page.rs b/src/man_page.rs index 0ee98900..1b7e7723 100644 --- a/src/man_page.rs +++ b/src/man_page.rs @@ -230,7 +230,7 @@ fn render_value_hint(arg: &Arg) -> String { } else { parts.push(format!("\\fI<{}>\\fR", roff_escape(arg.get_id().as_str()))); } - let value_part = parts.join("\\fI \\fR"); + let value_part = parts.join(" "); let defaults: Vec<_> = arg .get_default_values() .iter() diff --git a/tests/sync_man_page.rs b/tests/sync_man_page.rs index e1716e6c..f4a6db43 100644 --- a/tests/sync_man_page.rs +++ b/tests/sync_man_page.rs @@ -4,12 +4,12 @@ // Since the CLI in Windows looks a little different, and I am way too lazy to make two versions // of man page files, the following test would only run in UNIX-like environment. -#![cfg(unix)] #![cfg(feature = "cli")] use parallel_disk_usage::man_page::render_man_page; #[test] +#[cfg_attr(not(unix), ignore = "man page test only runs on Unix-like platforms")] fn man_page() { let received = render_man_page(); let expected = include_str!("../exports/pdu.1");