mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Truncate logged fields
This commit is contained in:
parent
382d7417a8
commit
b0d97454a8
1 changed files with 4 additions and 2 deletions
|
@ -70,9 +70,11 @@ impl Note {
|
|||
.into_fields()
|
||||
.into_iter()
|
||||
.map(|field| {
|
||||
strip_html_preserving_media_filenames(&field)
|
||||
let mut reduced = strip_html_preserving_media_filenames(&field)
|
||||
.get_owned()
|
||||
.unwrap_or(field)
|
||||
.unwrap_or(field);
|
||||
reduced.truncate(80);
|
||||
reduced
|
||||
})
|
||||
.collect(),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue