fix: show all english definitions per entry

This commit is contained in:
jojii 2021-02-18 17:26:39 +01:00
parent 4fdddd1039
commit e298065a5d

View file

@ -93,7 +93,11 @@ fn format_sense(value: &Value, index: usize) -> String {
format!( format!(
"{}. {} {}", "{}. {} {}",
index + 1, index + 1,
value_to_str(english_definiton.get(0).unwrap()), english_definiton
.iter()
.map(|i| value_to_str(i))
.collect::<Vec<&str>>()
.join(", "),
tags tags
) )
} }