diff --git a/assets/theme_preview.rs b/assets/theme_preview.rs index f38589af..1e436225 100644 --- a/assets/theme_preview.rs +++ b/assets/theme_preview.rs @@ -1,5 +1,5 @@ -// Output the square of a number. -fn print_square(num: f64) { - let result = f64::powf(num, 2.0); - println!("The square of {:.2} is {:.2}.", num, result); -} + // Output the square of a number. + fn print_square(num: f64) { + let result = f64::powf(num, 2.0); + println!("The square of {:.2} is {:.2}.", num, result); + } diff --git a/src/main.rs b/src/main.rs index 5081eec0..84c79337 100644 --- a/src/main.rs +++ b/src/main.rs @@ -139,10 +139,10 @@ pub fn list_themes(assets: &HighlightingAssets, cfg: &Config) { config.files = vec![Some("assets/theme_preview.rs")]; config.output_components = OutputComponents(style); for (theme, _) in themes.iter() { - println!("{}\n", Style::new().bold().paint(theme.to_string())); + println!("Theme: {}\n", Style::new().bold().paint(theme.to_string())); config.theme = theme.to_string(); let _controller = Controller::new(&config, &assets).run(); - println!("--------------------------------\n"); + println!() } }