diff options
-rwxr-xr-x | pandoc-cs1 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -40,11 +40,11 @@ pandoc_filter sub { for ( my $i = 1;; $i++ ) { my ( $first, $last ); if ( $i == 1 and $bibdata->get('first') ) { - $first = $bibdata->get("first$i"); - $bibdata->delete("first$i"); - } elsif ( $bibdata->get("first$i") ) { $first = $bibdata->get('first'); $bibdata->delete('first'); + } elsif ( $bibdata->get("first$i") ) { + $first = $bibdata->get("first$i"); + $bibdata->delete("first$i"); } if ( $i == 1 and $bibdata->get('last') ) { $last = $bibdata->get('last'); |