aboutsummaryrefslogtreecommitdiffstats
path: root/skate
diff options
context:
space:
mode:
Diffstat (limited to 'skate')
-rw-r--r--skate/reduce.go2
-rw-r--r--skate/reduce_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/skate/reduce.go b/skate/reduce.go
index eac2e83..01df50f 100644
--- a/skate/reduce.go
+++ b/skate/reduce.go
@@ -501,7 +501,7 @@ func matchedRefsExtend(matched []*BiblioRef, refs []*Ref, stats *statsAugment) [
seen.Add(s)
}
for _, r := range refs {
- s := r.Key + fmt.Sprintf("%d", r.Index)
+ s := r.Key + fmt.Sprintf("%d", r.Index+1)
if seen.Contains(s) {
stats.skipMatchedRef++
log.Printf("skip-matched-ref [%d]: from %d matches; ident=%v, title=%s, key=%v, index=%d",
diff --git a/skate/reduce_test.go b/skate/reduce_test.go
index 99c0ed7..da4e21e 100644
--- a/skate/reduce_test.go
+++ b/skate/reduce_test.go
@@ -215,7 +215,7 @@ func TestMatchedRefsExtend(t *testing.T) {
Biblio: Biblio{
Title: "Title",
},
- Index: 2,
+ Index: 1,
Key: "K2",
},
},