From a3f7161206397598670ed267276b5bfa7083ba3c Mon Sep 17 00:00:00 2001 From: Jono Brandel Date: Sat, 8 Feb 2025 18:11:50 -0800 Subject: [PATCH] Fix white space formatting --- src/utils/interpret-svg.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils/interpret-svg.js b/src/utils/interpret-svg.js index 62dd5e7b..7bf76120 100644 --- a/src/utils/interpret-svg.js +++ b/src/utils/interpret-svg.js @@ -493,7 +493,7 @@ function applySvgAttributes(node, elem, parentStyles) { if (elem instanceof Text) { if (value.match('[a-z%]$') && !value.endsWith('px')) { error = new TwoError( - 'only pixel values are supported with the ' + key + ' attribute.' + 'only pixel values are supported with the ' + key + ' attribute.' ); console.warn(error.name, error.message); } @@ -1322,11 +1322,11 @@ export const read = { const baseline = getBaseline(node) || 'baseline'; let message = ''; - //Detect tspan for getting text content. - //If not, svg indentation apears in text content - if(node.childNodes.length > 0 && node.childNodes[0].tagName === 'TSPAN') { + // Detect tspan for getting text content. + // If not, svg indentation apears in text content + if (node.childNodes.length > 0 && node.childNodes[0].tagName === 'TSPAN') { message = node.childNodes[0].textContent; - }else{ + } else { message = node.textContent; }