diff options
-rw-r--r-- | CHANGELOG | 2 | ||||
-rw-r--r-- | lib/puppet/parser/functions.rb | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,6 @@ 0.25.0 + Doc strings update for REST + Fixed #1840 - Bug fixes and improvements for Emacs puppet-mode.el Updated Red Hat spec file 0.24.7 diff --git a/lib/puppet/parser/functions.rb b/lib/puppet/parser/functions.rb index b1cd0d083..b9e49131c 100644 --- a/lib/puppet/parser/functions.rb +++ b/lib/puppet/parser/functions.rb @@ -92,7 +92,7 @@ module Functions #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 += Puppet::Util::Docs.scrub(hash[:doc]) else ret += "Undocumented.\n" end |