mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Merge pull request #913 from RumovZ/fix-write-template
Fix ordinal case in write_template
This commit is contained in:
commit
4ba4e8ca78
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ fn write_single_field(field: &str, text: &str, is_re: bool) -> String {
|
|||
|
||||
fn write_template(template: &TemplateKind) -> String {
|
||||
match template {
|
||||
TemplateKind::Ordinal(u) => format!("\"card:{}\"", u),
|
||||
TemplateKind::Ordinal(u) => format!("\"card:{}\"", u + 1),
|
||||
TemplateKind::Name(s) => format!("\"card:{}\"", s),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue