Skip to content

Commit 6de62b5

Browse files
committed
Replace tabs with two spaces, as Monotron is horizontally limited.
1 parent 27ab539 commit 6de62b5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/lib.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ where
409409
fn print_short_help(&mut self, item: &Item<T>) {
410410
match item.item_type {
411411
ItemType::Callback { parameters, .. } => {
412-
write!(self.context, "\t{}", item.command).unwrap();
412+
write!(self.context, " {}", item.command).unwrap();
413413
if !parameters.is_empty() {
414414
for param in parameters.iter() {
415415
match param {
@@ -435,10 +435,10 @@ where
435435
}
436436
}
437437
ItemType::Menu(_menu) => {
438-
write!(self.context, "\t{}", item.command).unwrap();
438+
write!(self.context, " {}", item.command).unwrap();
439439
}
440440
ItemType::_Dummy => {
441-
write!(self.context, "\t{}", item.command).unwrap();
441+
write!(self.context, " {}", item.command).unwrap();
442442
}
443443
}
444444
if let Some(help) = item.help {
@@ -451,7 +451,7 @@ where
451451
writeln!(self.context, "SUMMARY:").unwrap();
452452
match item.item_type {
453453
ItemType::Callback { parameters, .. } => {
454-
write!(self.context, "\t{}", item.command).unwrap();
454+
write!(self.context, " {}", item.command).unwrap();
455455
if !parameters.is_empty() {
456456
for param in parameters.iter() {
457457
match param {
@@ -483,7 +483,7 @@ where
483483
} => {
484484
writeln!(
485485
self.context,
486-
"\t<{0}>\n\t\t- {1}",
486+
" <{0}>\n - {1}",
487487
parameter_name,
488488
help.unwrap_or(""),
489489
)
@@ -495,7 +495,7 @@ where
495495
} => {
496496
writeln!(
497497
self.context,
498-
"\t<{0}>\n\t\t- {1}",
498+
" <{0}>\n - {1}",
499499
parameter_name,
500500
help.unwrap_or("No help text found"),
501501
)
@@ -507,7 +507,7 @@ where
507507
} => {
508508
writeln!(
509509
self.context,
510-
"\t--{0}\n\t\t- {1}",
510+
" --{0}\n - {1}",
511511
parameter_name,
512512
help.unwrap_or("No help text found"),
513513
)
@@ -520,7 +520,7 @@ where
520520
} => {
521521
writeln!(
522522
self.context,
523-
"\t--{0}={1}\n\t\t- {2}",
523+
" --{0}={1}\n - {2}",
524524
parameter_name,
525525
argument_name,
526526
help.unwrap_or("No help text found"),
@@ -532,10 +532,10 @@ where
532532
}
533533
}
534534
ItemType::Menu(_menu) => {
535-
write!(self.context, "\t{}", item.command).unwrap();
535+
write!(self.context, " {}", item.command).unwrap();
536536
}
537537
ItemType::_Dummy => {
538-
write!(self.context, "\t{}", item.command).unwrap();
538+
write!(self.context, " {}", item.command).unwrap();
539539
}
540540
}
541541
if let Some(help) = item.help {

0 commit comments

Comments
 (0)