diff options
Diffstat (limited to 'lib/rexml/doctype.rb')
-rw-r--r-- | lib/rexml/doctype.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rexml/doctype.rb b/lib/rexml/doctype.rb index 084676afa9..506952312a 100644 --- a/lib/rexml/doctype.rb +++ b/lib/rexml/doctype.rb @@ -109,7 +109,7 @@ module REXML output << " #@long_name" if @long_name output << " #@uri" if @uri unless @children.empty? - next_indent = indent + 2 + next_indent = indent + 1 output << ' [' child = nil # speed @children.each { |child| @@ -123,6 +123,10 @@ module REXML output << STOP end + def context + @parent.context + end + def entity( name ) @entities[name].unnormalized if @entities[name] end |