Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
Woops, was still outputting empty newlines for #29
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Dec 13, 2018
1 parent ef08df3 commit 0c37c40
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/svg-to-png.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
}
reject( err );
} else {
console.log( stdout );
if( (stdout || "").trim() ) {
console.log( stdout );
}
resolve( outputDir );
}
});
Expand Down Expand Up @@ -79,7 +81,9 @@
}
reject( err );
} else {
console.log( stdout );
if( (stdout || "").trim() ) {
console.log( stdout );
}
opts = opts || {};
opts.optimizationLevel = opts.optimizationLevel || 3;

Expand Down

0 comments on commit 0c37c40

Please sign in to comment.