summaryrefslogtreecommitdiff
path: root/lib/VNDB
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-01-06 09:10:23 +0100
committerYorhel <git@yorhel.nl>2020-01-06 09:10:23 +0100
commit511f09d3f2629253d48047999b61db99bce81b04 (patch)
tree68e798d81cee3cabde6995d19b8dfed02203d029 /lib/VNDB
parentb02430a14da69d626912f646f78d05b2493a94dd (diff)
Handler::Chars: Fix empty lines from hidden spoilers in VN relations on char pages
Diffstat (limited to 'lib/VNDB')
-rw-r--r--lib/VNDB/Handler/Chars.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Chars.pm b/lib/VNDB/Handler/Chars.pm
index 656dda04..cff84607 100644
--- a/lib/VNDB/Handler/Chars.pm
+++ b/lib/VNDB/Handler/Chars.pm
@@ -229,13 +229,13 @@ sub charTable {
td;
my $first = 0;
for my $g (sort { $vns{$a}[0]{vntitle} cmp $vns{$b}[0]{vntitle} } keys %vns) {
- br if $first++;
my @r = @{$vns{$g}};
# special case: all releases, no exceptions
if(!$vn && @r == 1 && !$r[0]{rid}) {
span class => charspoil $r[0]{spoil};
txt $CHAR_ROLE{$r[0]{role}}{txt}.' - ';
a href => "/v$r[0]{vid}/chars", $r[0]{vntitle};
+ br;
end;
next;
}
@@ -257,6 +257,7 @@ sub charTable {
}
end;
}
+ br;
end;
}
end;