From 63fc06c81744ce28183c61b6978892711fbdcc6a Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Wed, 22 Mar 2023 15:49:36 +0100 Subject: [PATCH] cli: Don't have blank line if no description Changes `rad patch show` to not have a blank line when there is no description. --- radicle-cli/src/commands/patch/show.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/radicle-cli/src/commands/patch/show.rs b/radicle-cli/src/commands/patch/show.rs index 6c078dff..2a4a7c9c 100644 --- a/radicle-cli/src/commands/patch/show.rs +++ b/radicle-cli/src/commands/patch/show.rs @@ -70,11 +70,10 @@ pub fn run( let meta = VStack::default() .border(Some(term::colors::FAINT)) .child(attrs) - .blank() .children(if !description.is_empty() { - Some(label(term::format::dim(description))) + vec![term::Label::blank(), label(term::format::dim(description))] } else { - None + vec![] }); meta.print();