my $ownline = 0;
my $compress = 0;
my $oneline = 0;
+ my $shorten = 1;
my $elem = $arg;
- while( $elem =~ /^[+\!@#]/ ) {
+ while( $elem =~ /^[+\!@#-]/ ) {
if( substr( $elem, 0, 1 ) eq '+' ) {
$elem = substr( $elem, 1 );
$compress = 1;
$elem = substr( $elem, 1 );
$oneline = 1;
}
+ if( substr( $elem, 0, 1 ) eq '-' ) {
+ $elem = substr( $elem, 1 );
+ $shorten = 0;
+ }
}
if( exists( $item->{ $elem } ) ) {
if( $elem eq "link" ) {
- push @bits, "<".makeashorterlink( $item->{ 'link' } ).">";
+ if( $shorten ) {
+ push @bits, "<".makeashorterlink( $item->{ 'link' } ).">";
+ } else {
+ push @bits, "<".$item->{ 'link' }.">";
+ }
} else {
my $tmp = $item->{ $elem };
if( $strip == 1 ) {
push @bits, $tmp;
}
} else {
- push @bits, $elem;
+ push @bits, $elem;
}
}
push @items, join( ' ', @bits );