From 6713e044e0b1a0a9dbb61da7a2ce6f252dc95f12 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sat, 27 Dec 2008 10:57:33 +0100 Subject: [spoiler] tag produces mouseover-style spoilers instead of ROT13 --- lib/VNDB/Func.pm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'lib/VNDB/Func.pm') diff --git a/lib/VNDB/Func.pm b/lib/VNDB/Func.pm index 9abacad0..1833be37 100644 --- a/lib/VNDB/Func.pm +++ b/lib/VNDB/Func.pm @@ -98,7 +98,6 @@ sub bb2html { my $e = sub { local $_ = shift; - tr/A-Za-z/N-ZA-Mn-za-m/ if !@_ && grep /spoiler/, @open; s/&/&/g; s/>/>/g; s/'; next } + elsif ($_ eq '[/spoiler]') { + if($open[$#open] eq 'spoiler') { + $result .= ''; + pop @open; + } + next; + } elsif($_ eq '[/url]') { if($open[$#open] eq 'url') { $result .= ''; pop @open; -- cgit v1.2.3