fix: show all english definitions per entry
This commit is contained in:
parent
4fdddd1039
commit
e298065a5d
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue