mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Co-authored-by: Rémi Deloye <remi.deloye@telecom-paris.fr>
This commit is contained in:
parent
7556f71b96
commit
0321c26e73
1 changed files with 3 additions and 3 deletions
|
@ -590,9 +590,9 @@ impl Collection {
|
|||
Ok(changed_notes)
|
||||
}
|
||||
|
||||
/// Check if the note's first field is empty or a duplicate. Then for cloze
|
||||
/// notetypes, check if there is a cloze in a non-cloze field or if there's
|
||||
/// no cloze at all. For other notetypes, just check if there's a cloze.
|
||||
/// Check if there is a cloze in a non-cloze field. Then check if the
|
||||
/// note's first field is empty. For cloze notetypes, check whether there
|
||||
/// is a cloze at all. Finally, check if the first field is a duplicate.
|
||||
pub fn note_fields_check(&mut self, note: &Note) -> Result<NoteFieldsState> {
|
||||
Ok({
|
||||
let cloze_state = self.field_cloze_check(note)?;
|
||||
|
|
Loading…
Reference in a new issue