Skip to content

Commit

Permalink
Update packages/turndown/src/turndown.js
Browse files Browse the repository at this point in the history
remove space

Co-authored-by: Henry Heino <[email protected]>
  • Loading branch information
wljince007 and personalizedrefrigerator committed Apr 18, 2024
1 parent 948c49f commit 4be5dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/turndown/src/turndown.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ function replacementForNode (node, previousNode) {
var lastChildWhitespace = node.childNodes[node.childNodes.length-1].flankingWhitespace

if (whitespace.leading === firstChildWhitespace.leading &&
whitespace.trailing === lastChildWhitespace.trailing){
whitespace.trailing === lastChildWhitespace.trailing) {
content = content.trim()
}
}
} else {
// keep line breaks
content = content.replace(/^[ \t]+|[ \t]+$/g, '');
Expand Down

0 comments on commit 4be5dde

Please sign in to comment.