fix_text() and multiple lines

David Siegel david.siegel at
Mon Feb 12 05:05:59 PST 2001


while playing with ALFS I recognized that fix_text( $text ) affects
only the first line of $text. So if you have

  with multiple lines
    and spaces 

fix_text only fixes "with multiple lines".

If nobody relies on this behavior I suggest replacing
    $text =~ s/^\s+//;
    $text =~ s/\s+$//;
    $text =~ s/(^\s+|\s+$)//gm;

which does the magic :)

have fun,

More information about the alfs-discuss mailing list