summaryrefslogtreecommitdiff
path: root/lib/rexml/comment.rb
diff options
context:
space:
mode:
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