summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders/xml.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay/encoders/xml.rb')
-rw-r--r--lib/coderay/encoders/xml.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/coderay/encoders/xml.rb b/lib/coderay/encoders/xml.rb
index 09e4549..dffa98c 100644
--- a/lib/coderay/encoders/xml.rb
+++ b/lib/coderay/encoders/xml.rb
@@ -22,7 +22,6 @@ module Encoders
protected
def setup options
- @out = ''
@doc = REXML::Document.new
@doc << REXML::XMLDecl.new
@tab_width = options[:tab_width]
@@ -33,7 +32,7 @@ module Encoders
@doc.write @out, options[:pretty], options[:transitive], true
@out
end
-
+
def text_token text, kind
if kind == :space
token = @node