Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
s2k opened this issue Feb 4, 2016 · 1 comment

Comments

@s2k
Copy link

s2k commented Feb 4, 2016

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:

  • When using a non-breaking space (ALT-spacebar on OS X) directly after the dots, the complete description is printed as well. This can be used as a workaround.
  • It doesn't matter whether or not the dots appear consecutively in the description. Even with desc 'Have dots . in . the description'the text it cut off.

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:

  • OS X 10.11.3 (15D21)
  • rvm 1.26.11
  • Ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
  • Rake version 10.5.0
@hsbt
Copy link
Member

hsbt commented Feb 16, 2016

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants