summaryrefslogtreecommitdiffstats
path: root/lib/rexml/cdata.rb
diff options
context:
space:
mode:
authorser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-16 19:08:03 +0000
committerser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-16 19:08:03 +0000
commit148fef736d60c6115fce45e3eb662743f07c251c (patch)
tree5fbc86b061de7618c69e6469d18805f6b376cc1d /lib/rexml/cdata.rb
parent93423022078ffdac84f7f8fd632e8105f92323ed (diff)
downloadruby-148fef736d60c6115fce45e3eb662743f07c251c.tar.gz
ruby-148fef736d60c6115fce45e3eb662743f07c251c.tar.xz
ruby-148fef736d60c6115fce45e3eb662743f07c251c.zip
Cross-ported the REXML changes (3.0.8) from the development branch to the
stable branch. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/cdata.rb')
-rw-r--r--lib/rexml/cdata.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/cdata.rb b/lib/rexml/cdata.rb
index 402a0187f..9e82376cd 100644
--- a/lib/rexml/cdata.rb
+++ b/lib/rexml/cdata.rb
@@ -59,7 +59,7 @@ module REXML
# c = CData.new( " Some text " )
# c.write( $stdout ) #-> <![CDATA[ Some text ]]>
def write( output=$stdout, indent=-1, transitive=false, ie_hack=false )
- indent( output, indent )
+ indent( output, indent ) unless transitive
output << START
output << @string
output << STOP