diff --git a/src/utils.js b/src/utils.js index 1a164e7..a42c267 100644 --- a/src/utils.js +++ b/src/utils.js @@ -235,7 +235,7 @@ function getFontPbf(allowedFonts, fontPath, name, range, fallbacks) { if (err) { console.error( 'ERROR: Font not found: %s, Error: %s', - filename, + filename.replace(/\n|\r/g, ''), String(err), ); if (fallbacks && Object.keys(fallbacks).length) {