From 13e473ed3c2dc53772e75bcb9822b725cf9f8a79 Mon Sep 17 00:00:00 2001 From: nfagerlund Date: Mon, 23 May 2011 17:26:59 -0700 Subject: 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. --- lib/puppet/interface/documentation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit