Skip to content

Commit

Permalink
Remove whitespace from title length variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dlh committed Jul 23, 2016
1 parent 257c992 commit b57280b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube-dl-parallel
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function find_longest_title() {
pushd "$TITLES_DIRECTORY" > /dev/null
for title_file in $(ls | sort -n); do
local title=$(cat "$title_file")
local length=$(echo "$title" | wc -m)
local length=$(echo "$title" | wc -m | tr -d '[[:space:]]')
if test $length -gt $TITLE_PADDING; then
TITLE_PADDING=$length
fi
Expand Down

0 comments on commit b57280b

Please sign in to comment.