diff --git a/kitchen/src/cli.rs b/kitchen/src/cli.rs index 0f38baf..6d35ec9 100644 --- a/kitchen/src/cli.rs +++ b/kitchen/src/cli.rs @@ -87,7 +87,7 @@ pub fn output_ingredients_list(rs: Vec) { acc.accumulate_from(&r); } for (_, i) in acc.ingredients() { - print!("{}", i.amt); + print!("{}", i.amt.normalize()); println!(" {}", i.name); } } @@ -101,7 +101,7 @@ pub fn output_ingredients_csv(rs: Vec) { let mut writer = csv::Writer::from_writer(out); for (_, i) in acc.ingredients() { writer - .write_record(&[format!("{}", i.amt), i.name]) + .write_record(&[format!("{}", i.amt.normalize()), i.name]) .expect("Failed to write csv."); } }