summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/docs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/util/docs.rb')
-rw-r--r--lib/puppet/util/docs.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/util/docs.rb b/lib/puppet/util/docs.rb
index d247ec044..dc742d4b0 100644
--- a/lib/puppet/util/docs.rb
+++ b/lib/puppet/util/docs.rb
@@ -90,8 +90,8 @@ module Puppet::Util::Docs
# If we can match an indentation, then just remove that same level of
# indent from every line. However, ignore any indentation on the
# first line, since that can be inconsistent.
- text = text.lstrip()
- text.gsub!(/^([\t]+)/) { |s| " "*8*s.length(); } # Expand leading tabs
+ text = text.lstrip
+ text.gsub!(/^([\t]+)/) { |s| " "*8*s.length; } # Expand leading tabs
# Find first non-empty line after the first line:
line2start = (text =~ /(\n?\s*\n)/)
line2start += $1.length