aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rexml/cdata.rb
diff options
context:
space:
mode:
authorser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-16 18:42:58 +0000
committerser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-16 18:42:58 +0000
commit0d04057aad88b17c6189caa2443cd4b79ba96b13 (patch)
tree0dbe5f70de81f17d043a39947e72a02c428c9a0d /lib/rexml/cdata.rb
parentfcc9c6eab39a535efb827e5fd556dc043bdff6e6 (diff)
downloadruby-0d04057aad88b17c6189caa2443cd4b79ba96b13.tar.gz
------------------------------------------------------------------------
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6336 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 402a0187ff..9e82376cd8 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