Skip to content

Commit 0c633ff

Browse files
committed
fix(man): indent conflict paragraph under its option
Wrap the "Cannot be used with" line in .RS/.RE so it stays indented under the option it belongs to, instead of breaking out to the base indentation level. https://claude.ai/code/session_01CrXuWDMVQsiUBoy6ceACsF
1 parent aa3059b commit 0c633ff

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

exports/pdu.1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ List of files and/or directories
1616
.TP
1717
\fB\-\-json\-input\fR
1818
Read JSON data from stdin
19+
.RS
1920
.PP
2021
Cannot be used with \fB\-\-deduplicate\-hardlinks\fR, \fB\-\-one\-file\-system\fR, \fB\-\-quantity\fR.
22+
.RE
2123
.TP
2224
\fB\-\-json\-output\fR
2325
Print JSON data instead of an ASCII chart
@@ -38,13 +40,17 @@ Use binary scale, i.e. 1K = 1024B, 1M = 1024K, and so on
3840
.TP
3941
\fB\-H\fR, \fB\-\-deduplicate\-hardlinks\fR, \fB\-\-detect\-links\fR, \fB\-\-dedupe\-links\fR
4042
Detect and subtract the sizes of hardlinks from their parent directory totals
43+
.RS
4144
.PP
4245
Cannot be used with \fB\-\-json\-input\fR.
46+
.RE
4347
.TP
4448
\fB\-x\fR, \fB\-\-one\-file\-system\fR
4549
Skip directories on different filesystems
50+
.RS
4651
.PP
4752
Cannot be used with \fB\-\-json\-input\fR.
53+
.RE
4854
.TP
4955
\fB\-\-top\-down\fR
5056
Print the tree top\-down instead of bottom\-up
@@ -65,21 +71,27 @@ Measure block sizes (block\-count * 512B)
6571
\fB\-\-quantity block\-count\fR
6672
Count numbers of blocks
6773
.RE
74+
.RS
6875
.PP
6976
Cannot be used with \fB\-\-json\-input\fR.
77+
.RE
7078
.TP
7179
\fB\-d\fR, \fB\-\-max\-depth\fR, \fB\-\-depth\fR \fI<MAX_DEPTH>\fR [default: 10]
7280
Maximum depth to display the data. Could be either "inf" or a positive integer
7381
.TP
7482
\fB\-w\fR, \fB\-\-total\-width\fR, \fB\-\-width\fR \fI<TOTAL_WIDTH>\fR
7583
Width of the visualization
84+
.RS
7685
.PP
7786
Cannot be used with \fB\-\-column\-width\fR.
87+
.RE
7888
.TP
7989
\fB\-\-column\-width\fR \fI<TREE_WIDTH>\fR\fI \fR\fI<BAR_WIDTH>\fR
8090
Maximum widths of the tree column and width of the bar column
91+
.RS
8192
.PP
8293
Cannot be used with \fB\-\-total\-width\fR.
94+
.RE
8395
.TP
8496
\fB\-m\fR, \fB\-\-min\-ratio\fR \fI<MIN_RATIO>\fR [default: 0.01]
8597
Minimal size proportion required to appear

src/man_page.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ fn render_conflicts(out: &mut String, command: &Command, arg: &Arg, conflict_map
303303
}
304304
writeln!(
305305
out,
306-
".PP\nCannot be used with {}.",
306+
".RS\n.PP\nCannot be used with {}.\n.RE",
307307
conflict_names.join(", ")
308308
)
309309
.unwrap();

0 commit comments

Comments
 (0)