Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/lib/XML/Generator.pm b/lib/XML/Generator.pm
- index 808b703..6d4bfd3 100644
- --- a/lib/XML/Generator.pm
- +++ b/lib/XML/Generator.pm
- @@ -804,7 +804,7 @@ sub _xmldecl {
- # use it to create a <!DOCTYPE ...> and to indicate that this
- # document can't stand alone.
- my $doctype = $this->xmldtd($this->{xml_header}{dtd} // $this->{dtd});
- - my $standalone = $doctype ? "no" : "yes";
- + my $standalone;# = $doctype ? "no" : "yes";
- for (my $i = 0; $i < $#args; $i += 2) {
- if ($args[$i] eq 'version' ) {
- @@ -818,6 +818,7 @@ sub _xmldecl {
- }
- }
- + $standalone = "no" if $doctype;;
- $version = qq{ version="$version"} if defined $version;
- $encoding = qq{ encoding="$encoding"} if defined $encoding;
- $standalone = qq{ standalone="$standalone"} if defined $standalone;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement