summaryrefslogtreecommitdiff
path: root/lib/rexml/comment.rb
diff options
context:
space:
mode:
authorser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-24 02:04:10 +0000
committerser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-24 02:04:10 +0000
commit20ae8fed6b2252a1c016748486924856e945ef59 (patch)
tree47bfabacac5fcad2f67cffa5f2b0eb80f064d4c6 /lib/rexml/comment.rb
parentfea9469fc6d1f3132e724a0c621c8144c682db72 (diff)
-
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/comment.rb')
-rw-r--r--lib/rexml/comment.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rexml/comment.rb b/lib/rexml/comment.rb
index 7c3e79fe2a..334017cbfc 100644
--- a/lib/rexml/comment.rb
+++ b/lib/rexml/comment.rb
@@ -54,6 +54,10 @@ module REXML
indent( output, indent )
output << START
output << @string
+ if indent>-1
+ output << "\n"
+ indent( output, indent )
+ end
output << STOP
end