diff options
Diffstat (limited to 'lib/rexml/doctype.rb')
-rw-r--r-- | lib/rexml/doctype.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rexml/doctype.rb b/lib/rexml/doctype.rb index 678095ae28..0b3c533bb4 100644 --- a/lib/rexml/doctype.rb +++ b/lib/rexml/doctype.rb @@ -248,11 +248,11 @@ module REXML end def to_s - "<!NOTATION #@name #@middle#{ - @public ? ' ' + public.inspect : '' - }#{ - @system ? ' ' +@system.inspect : '' - }>" + notation = "<!NOTATION #{@name} #{@middle}" + notation << " #{@public.inspect}" if @public + notation << " #{@system.inspect}" if @system + notation << ">" + notation end def write( output, indent=-1 ) |