diff options
Diffstat (limited to 'lib/puppet/parser/functions.rb')
-rw-r--r-- | lib/puppet/parser/functions.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/puppet/parser/functions.rb b/lib/puppet/parser/functions.rb index 21de7b6c0..c3208c4c9 100644 --- a/lib/puppet/parser/functions.rb +++ b/lib/puppet/parser/functions.rb @@ -75,13 +75,15 @@ module Functions ret = "" @functions.sort { |a,b| a[0].to_s <=> b[0].to_s }.each do |name, hash| - ret += "* **%s** (*%s*)" % [name, hash[:type]] + #ret += "%s\n%s\n" % [name, hash[:type]] + ret += "%s\n%s\n" % [name, "-" * name.to_s.length] if hash[:doc] - ret += ": " + hash[:doc].gsub(/\n\s*/, ' ') + ret += hash[:doc].gsub(/\n\s*/, ' ') else - ret += ": ``undocumented``" + ret += "Undocumented.\n" end - ret += "\n\n" + + ret += "\n\n- **Type**: %s\n\n" % hash[:type] end return ret |