ruby / rake

A make-like build utility for Ruby.
https://ruby.github.io/rake
MIT License
2.34k stars 613 forks source link

Description is cut off when running `rake -T` if the description contains dots followed by (white) space #106

Closed s2k closed 8 years ago

s2k commented 8 years ago

Let's assume the following Rakefile:

desc 'Have dots .. in the description'
task :odd do
  puts "doing soething useful..."
end

When I run rake -Tin the same directory I get this:

rake -T
rake odd  # Have dots .

Notice that the description is cut off after the first dot, even though the description i not particularly long.

However, if there's no space after the two dots (desc 'Have dots ..in the description'), then the complete description is printed:

#rake -T
rake odd  # Have dots ..in the description

Notes:

I consider this cutting off of text from the description a bug, since it even happens in relatively short descriptions and other non-dot descriptions of the same length are not cut off either.

Context:

hsbt commented 8 years ago

@s2k Thank you for your reporting. It seems to be defects.