On Mon, Apr 22, 2002 at 05:59:31PM -0500, Craig A. Berry wrote:
> Urk, that could be the culprit.  Now to see if we can make it leave macro 
> definitions alone and only do the following to targets:
> 
> =item nicetext (override)
> 
> Insure that colons marking targets are preceded by space, in order
> to distinguish the target delimiter from a colon appearing as
> part of a filespec.
> 
> =cut
> 
> sub nicetext {
> 
>     my($self,$text) = @_;
>     $text =~ s/([^\s:])(:+\s)/$1 $2/gs;
>     $text;
> }

Think this should do it.

sub nicetext {
    my($self,$text) = @_;
    $text =~ s/^([^\s:])(:+\s)/$1 $2/mgs;
    return $text;
}
            

-- 

Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
Perl Quality Assurance      <[EMAIL PROTECTED]>         Kwalitee Is Job One
Woah, like, did anybody see my watch?

Reply via email to