Merge pull request #913 from RumovZ/fix-write-template

Fix ordinal case in write_template
This commit is contained in:
Damien Elmes 2021-01-10 08:58:00 +10:00 committed by GitHub
commit 4ba4e8ca78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),
}
}