In-house patch to fix upstream bug PUP-2641
Patch has been submitted upstream but not yet accepted.
--- puppet-3.6.2/lib/puppet/application/describe.rb.orig 2014-05-29 08:14:12.779421080 -0600
+++ puppet-3.6.2/lib/puppet/application/describe.rb 2014-05-29 08:14:37.064254740 -0600
@@ -70,13 +70,8 @@
}.each do |name|
type = @types[name]
s = type.doc.gsub(/\s+/, " ")
- n = s.index(". ")
- if n.nil?
- s = ".. no documentation .."
- elsif n > 45
+ if s.length > 45
s = s[0, 45] + " ..."
- else
- s = s[0, n]
end
printf "%-15s - %s\n", name, s
end