Skip to content

Commit

Permalink
Fix fallback on subsequent name options not set (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstrickHarren authored Apr 8, 2024
1 parent 778a5da commit 89485c4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2453,9 +2453,12 @@ impl NameOptions<'_> {
return false;
}

// If this is a subsequent citation of the same item, use other CSL options
// If this is a subsequent citation of the same item, use other CSL options, if they exist
let (et_al_min, et_al_use_first) = if is_subsequent {
(self.et_al_subsequent_min, self.et_al_subsequent_use_first)
(
self.et_al_subsequent_min.or(self.et_al_min),
self.et_al_subsequent_use_first.or(self.et_al_use_first),
)
} else {
(self.et_al_min, self.et_al_use_first)
};
Expand Down

0 comments on commit 89485c4

Please sign in to comment.