Skip to content

Commit cb4dbb6

Browse files
committed
fix(man): remove empty date field from .TH header
Revert the .TH change that added an empty "" date field. The simpler form `.TH pdu 1 "pdu 0.21.1"` is the conventional approach used by clap_mangen and other tools. https://claude.ai/code/session_01CrXuWDMVQsiUBoy6ceACsF
1 parent 2641238 commit cb4dbb6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

exports/pdu.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH pdu 1 "" "pdu 0.21.1"
1+
.TH pdu 1 "pdu 0.21.1"
22
.SH NAME
33
pdu \- Summarize disk usage of the set of files, recursively for directories.
44
.SH SYNOPSIS

src/man_page.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fn roff_escape(text: &str) -> String {
5959
fn render_title(out: &mut String, command: &Command) {
6060
let name = command.get_name();
6161
let version = command.get_version().unwrap_or_default();
62-
writeln!(out, ".TH {name} 1 \"\" \"{name} {version}\"").unwrap();
62+
writeln!(out, ".TH {name} 1 \"{name} {version}\"").unwrap();
6363
}
6464

6565
fn render_name_section(out: &mut String, command: &Command) {

0 commit comments

Comments
 (0)