diff options
| author | nfagerlund <nick.fagerlund@gmail.com> | 2011-05-23 17:26:59 -0700 |
|---|---|---|
| committer | Matt Robinson <matt@puppetlabs.com> | 2011-05-26 16:04:42 -0700 |
| commit | 069a6b8e645255530abf308cfeeed1d7650211db (patch) | |
| tree | 47b1eee13073fea4073e3efd96a1b5da0c3af4f0 /lib/puppet | |
| parent | ebc642b2141cfed7d10a64ff0bb67a417f5f37be (diff) | |
| download | puppet-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.rb | 2 |
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 |
