diff --git a/src/interact/theme.rs b/src/interact/theme.rs index 017c32d..14dd7e4 100644 --- a/src/interact/theme.rs +++ b/src/interact/theme.rs @@ -54,14 +54,14 @@ impl Theme for AmeTheme { match selection { Some(selection) if prompt.is_empty() => { - write!(f, "{}", selection.italic()) + write!(f, " {}", selection.italic()) } Some(selection) => { - write!(f, "{} {}", &prompt.bold(), selection.italic()) + write!(f, " {} {}", &prompt.bold(), selection.italic()) } None if prompt.is_empty() => Ok(()), None => { - write!(f, "{}", &prompt.bold()) + write!(f, " {}", &prompt.bold()) } } } diff --git a/src/logging/handler.rs b/src/logging/handler.rs index 192fc54..7b7a649 100644 --- a/src/logging/handler.rs +++ b/src/logging/handler.rs @@ -104,7 +104,7 @@ impl LogHandler { format!("{}{}{}", acc, separator, line) }); - let lines = wrap_text(lines.trim_start_matches(separator), padding).join("\n"); + let lines = wrap_text(lines.trim_start_matches("\n"), padding).join("\n"); self.log(lines) } diff --git a/src/operations/aur_install/aur_fetch.rs b/src/operations/aur_install/aur_fetch.rs index ba708f2..5f287c8 100644 --- a/src/operations/aur_install/aur_fetch.rs +++ b/src/operations/aur_install/aur_fetch.rs @@ -39,6 +39,7 @@ impl AurFetch { pb.finish_with_message("All packages found".green().to_string()); normal_output!(); + print!(" "); // Indentation, is this too hacky? if print_aur_package_list(&package_infos.iter().collect::>()).await && !self.options.noconfirm && !prompt!(default yes, "Some packages are already installed. Continue anyway?")