- $_->[0]
- ? join join ('<br>' => @{$_->[-1]}) => ($params->{startCite}, $params->{endCite})
- : (join '<br>' => @{$_->[-1]});
+ my $string = $_->[0]
+ ? (($ll and $ll != $_->[0]) ? $break : '') .
+ join join ($break => @{$_->[-1]})
+ => ($params->{startCite}, $params->{endCite})
+ : (join $break => @{$_->[-1]});
+ $ll = $_->[0]; $string;