Skip to content

Commit

Permalink
Fix white space formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonobr1 committed Feb 9, 2025
1 parent b04f2e1 commit a3f7161
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/utils/interpret-svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit a3f7161

Please sign in to comment.