$short_desc = encode_entities( $1, "<>&\"" )
if $desc =~ s/^(.*)$//m;
my $long_desc = encode_entities( $desc, "<>&\"" );
-
+
$long_desc =~ s,((ftp|http|https)://[\S~-]+?/?)((\>\;)?[)]?[']?[:.\,]?(\s|$)),<a href=\"$1\">$1</a>$3,go; # syntax highlighting -> '];
$long_desc =~ s/\A //o;
$long_desc =~ s/\n /\n/sgo;
#
# display dependencies
#
+ build_deps( \%packages, $opts, $pkg,
+ $page->get_dep_field('pre-depends'),
+ 'depends', \%contents );
build_deps( \%packages, $opts, $pkg,
$page->get_dep_field('depends'),
'depends', \%contents );