- foreach $line (split(/###/,$html)) {
- $out .= "<tr><td>";
- my @items = split(/#-#/,$line);
- if ($items[1] =~ m#(http://[\S]+)\s*.*?#i) {
+ foreach $line (split(/\s*###\s*/,$html)) {
+ $out .= "<tr><td valign=\"top\">";
+ my @items = split(/\s*#-#\s*/,$line);
+ # convert spaces in left field to non-breaking spaces
+ $items[0] =~ s#\s+# #g;
+ # try to make link on right field
+ sub mkurl {
+ my $url = shift || die "mkurl needs url as argument";