Add trim() function from Bonsai to fix cvsquery.pl.

This commit is contained in:
reed%reedloden.com 2007-08-29 08:06:18 +00:00
Родитель 1a31679d06
Коммит 10ce419e41
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -432,6 +432,14 @@ sub shell_escape {
return $file;
}
# Trim whitespace from front and back.
sub trim {
($_) = (@_);
s/^\s+//g;
s/\s+$//g;
return $_;
}
sub tb_load_treedata($) {
my ($tree) = @_;