Skip to content

Commit

Permalink
Use (already) precalculated value
Browse files Browse the repository at this point in the history
  • Loading branch information
pzygielo authored and michael-o committed Mar 11, 2022
1 parent 667ce0e commit 3896620
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -460,15 +460,15 @@ public void startDocument( String encoding, Boolean standalone )
if ( encoding != null )
{
out.write( " encoding=" );
out.write( attributeUseApostrophe ? '\'' : '"' );
out.write( apos );
out.write( encoding );
out.write( attributeUseApostrophe ? '\'' : '"' );
out.write( apos );
// out.write('\'');
}
if ( standalone != null )
{
out.write( " standalone=" );
out.write( attributeUseApostrophe ? '\'' : '"' );
out.write( apos );
if ( standalone )
{
out.write( "yes" );
Expand All @@ -477,7 +477,7 @@ public void startDocument( String encoding, Boolean standalone )
{
out.write( "no" );
}
out.write( attributeUseApostrophe ? '\'' : '"' );
out.write( apos );
// if(standalone.booleanValue()) {
// out.write(" standalone='yes'");
// } else {
Expand Down

0 comments on commit 3896620

Please sign in to comment.