mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rexml/xmldecl.rb (REXML::XMLDecl#content): Add missing \A
and \z. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
04f41f019a
commit
6bc138b052
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Nov 3 14:43:42 2012 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* lib/rexml/xmldecl.rb (REXML::XMLDecl#content): Add missing \A
|
||||
and \z.
|
||||
|
||||
Sat Nov 3 14:42:55 2012 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* lib/rexml/output.rb (REXML::Output#initialize): Use normalized
|
||||
|
|
|
@ -107,7 +107,7 @@ module REXML
|
|||
private
|
||||
def content(enc)
|
||||
rv = "version='#@version'"
|
||||
rv << " encoding='#{enc}'" if @writeencoding || enc !~ /utf-8/i
|
||||
rv << " encoding='#{enc}'" if @writeencoding || enc !~ /\Autf-8\z/i
|
||||
rv << " standalone='#@standalone'" if @standalone
|
||||
rv
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue