Merge pull request #509 from FreeMasen/fix-color

reset color in colorize
This commit is contained in:
Vincent Prouillet 2018-11-02 08:27:16 +01:00 committed by GitHub
commit 0c25c23570
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,6 +42,7 @@ fn colorize(message: &str, color: &ColorSpec) {
let mut stdout = StandardStream::stdout(*COLOR_CHOICE);
stdout.set_color(color).unwrap();
writeln!(&mut stdout, "{}", message).unwrap();
stdout.set_color(&ColorSpec::new()).unwrap();
}
/// Display in the console the number of pages/sections in the site