--- trunk/back2html.pm 2003/07/05 22:03:21 72 +++ trunk/back2html.pm 2003/07/08 08:24:13 80 @@ -7,10 +7,15 @@ sub back2html { my $html = shift; + $html =~ s//>/g; my $out; - foreach $line (split(/###/,$html)) { - $out .= ""; - my @items = split(/#-#/,$line); + foreach $line (split(/\s*###\s*/,$html)) { + $out .= ""; + 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 if ($items[1] =~ m#(http://[\S]+)\s*.*?#i) { # chop URLS longer than 60 characters my $url = substr($1,0,60);