Fix indentation in certain places

i18n
Michal S 2 years ago committed by Michal
parent 888914ffbe
commit 1e93e5eb81

@ -54,14 +54,14 @@ impl Theme for AmeTheme {
match selection { match selection {
Some(selection) if prompt.is_empty() => { Some(selection) if prompt.is_empty() => {
write!(f, "{}", selection.italic()) write!(f, " {}", selection.italic())
} }
Some(selection) => { Some(selection) => {
write!(f, "{} {}", &prompt.bold(), selection.italic()) write!(f, " {} {}", &prompt.bold(), selection.italic())
} }
None if prompt.is_empty() => Ok(()), None if prompt.is_empty() => Ok(()),
None => { None => {
write!(f, "{}", &prompt.bold()) write!(f, " {}", &prompt.bold())
} }
} }
} }

@ -104,7 +104,7 @@ impl LogHandler {
format!("{}{}{}", acc, separator, line) 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) self.log(lines)
} }

@ -39,6 +39,7 @@ impl AurFetch {
pb.finish_with_message("All packages found".green().to_string()); pb.finish_with_message("All packages found".green().to_string());
normal_output!(); normal_output!();
print!(" "); // Indentation, is this too hacky?
if print_aur_package_list(&package_infos.iter().collect::<Vec<_>>()).await if print_aur_package_list(&package_infos.iter().collect::<Vec<_>>()).await
&& !self.options.noconfirm && !self.options.noconfirm
&& !prompt!(default yes, "Some packages are already installed. Continue anyway?") && !prompt!(default yes, "Some packages are already installed. Continue anyway?")

Loading…
Cancel
Save