Skip to content

Commit

Permalink
[img] tags' alt text gets put in html "title" attribute too, for mous…
Browse files Browse the repository at this point in the history
…eovers.
  • Loading branch information
icculus committed Jul 30, 2007
1 parent aa04096 commit f164d98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions IcculusFinger_daemon.pl
Expand Up @@ -74,6 +74,7 @@
# Added info on how to access this user's .plan archives.
# 2.1.16: [img] tags in plain text output use the link digest, too.
# 2.1.17: Added <pubDate> tags to RSS feed.
# 2.1.18: HTML img tag puts alt text in "title" attribute, too, for mouseovers.
#-----------------------------------------------------------------------------

# !!! TODO: If an [img] isn't in a link tag, make it link to the image.
Expand All @@ -86,7 +87,7 @@
use IO::Select; # bleh.

# Version of IcculusFinger. Change this if you are forking the code.
my $version = "v2.1.17";
my $version = "v2.1.18";


#-----------------------------------------------------------------------------#
Expand Down Expand Up @@ -1116,7 +1117,7 @@ sub do_fingering {

# Change [img][/img] tags.
if ($do_html_formatting) {
1 while ($output_text =~ s/\[img=\"(.*?)\"\](.*?)\[\/img\]/<img src=\"$1\" alt=\"$2\" border=\"0\">/is);
1 while ($output_text =~ s/\[img=\"(.*?)\"\](.*?)\[\/img\]/<img src=\"$1\" title=\"$2\" alt=\"$2\" border=\"0\">/is);
} elsif ($do_link_digest) {
while ($output_text =~ s/\[img=\"(.*?)\"\](.*?)\[\/img\]/$2 \[$linkcount\]/is) {
push @link_digest, $1;
Expand Down

0 comments on commit f164d98

Please sign in to comment.