Skip to content

Commit

Permalink
Fix application of --whitespace to final file/path
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkypumpkin committed Nov 17, 2014
1 parent 2a23f8e commit f28013d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions get_iplayer
Original file line number Diff line number Diff line change
Expand Up @@ -4862,6 +4862,8 @@ sub substitute {
# Remove unused tags
my $key = $tag_begin.'.*?'.$tag_end;
$string =~ s|$key||mg;
# Replace whitespace with _ unless --whitespace
$string =~ s/\s/_/g unless $opt->{whitespace};
}
return $string;
}
Expand Down

0 comments on commit f28013d

Please sign in to comment.