diff options
| author | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-16 18:42:58 +0000 |
|---|---|---|
| committer | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-16 18:42:58 +0000 |
| commit | bbecd4f7465438751ac357853ff544692b8569f7 (patch) | |
| tree | 0dbe5f70de81f17d043a39947e72a02c428c9a0d /lib/rexml/text.rb | |
| parent | b0d0e2f2e121b3b6fc21f8471596aa5a0a98ddbf (diff) | |
| download | ruby-bbecd4f7465438751ac357853ff544692b8569f7.tar.gz ruby-bbecd4f7465438751ac357853ff544692b8569f7.tar.xz ruby-bbecd4f7465438751ac357853ff544692b8569f7.zip | |
------------------------------------------------------------------------
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/text.rb')
| -rw-r--r-- | lib/rexml/text.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb index 1d2d2dd71..388256ac8 100644 --- a/lib/rexml/text.rb +++ b/lib/rexml/text.rb @@ -194,7 +194,7 @@ module REXML @raw = false end - def indent(string, level=1, style="\t", indentfirstline=true) + def indent_text(string, level=1, style="\t", indentfirstline=true) return string if level < 0 new_string = '' string.each { |line| @@ -211,7 +211,7 @@ module REXML if not (@parent and @parent.whitespace) then s = wrap(s, 60, false) if @parent and @parent.context[:wordwrap] == :all if @parent and not @parent.context[:indentstyle].nil? and indent > 0 and s.count("\n") > 0 - s = indent(s, indent, @parent.context[:indentstyle], false) + s = indent_text(s, indent, @parent.context[:indentstyle], false) end s.squeeze!(" \n\t") if @parent and !@parent.whitespace end |
