Skip to content

Commit

Permalink
svg-file.js: trim before getting the text length
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Sep 23, 2021
1 parent 78a1096 commit f2404e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/page/svg-file.js
Expand Up @@ -10,7 +10,7 @@ export default class SvgFile {
}

async size({ compress }) {
if (!compress) return this.text.length;
if (!compress) return this.text.trim().length;

if (!this._compressedSize) {
this._compressedSize = gzip
Expand Down

0 comments on commit f2404e3

Please sign in to comment.