summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authornfagerlund <nick.fagerlund@gmail.com>2011-05-23 17:26:59 -0700
committerMatt Robinson <matt@puppetlabs.com>2011-05-26 16:04:42 -0700
commit069a6b8e645255530abf308cfeeed1d7650211db (patch)
tree47b1eee13073fea4073e3efd96a1b5da0c3af4f0 /lib/puppet
parentebc642b2141cfed7d10a64ff0bb67a417f5f37be (diff)
downloadpuppet-069a6b8e645255530abf308cfeeed1d7650211db.tar.gz
puppet-069a6b8e645255530abf308cfeeed1d7650211db.tar.xz
puppet-069a6b8e645255530abf308cfeeed1d7650211db.zip
Maint: Add ellipsis to generated short_descriptions.
Auto-generated short descriptions cut off at five lines with no indication that they are truncated. This commit adds ellipsis in brackets to indicate incompleteness.
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/interface/documentation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/interface/documentation.rb b/lib/puppet/interface/documentation.rb
index 48e9a8b1a..aedcc1c24 100644
--- a/lib/puppet/interface/documentation.rb
+++ b/lib/puppet/interface/documentation.rb
@@ -78,7 +78,7 @@ class Puppet::Interface
return nil if @description.nil?
lines = @description.split("\n")
grab = [5, lines.index('') || 5].min
- @short_description = lines[0, grab].join("\n")
+ @short_description = lines[0, grab].join("\n") + ' [...]'
end
@short_description
end