diff --git a/packages/block-library/src/post-excerpt/edit.js b/packages/block-library/src/post-excerpt/edit.js index 378aa34cd00baa..10e36e267504d6 100644 --- a/packages/block-library/src/post-excerpt/edit.js +++ b/packages/block-library/src/post-excerpt/edit.js @@ -156,7 +156,10 @@ export default function PostExcerptEditor( { .split( '', excerptLength + numberOfSpaces ) .join( '' ); } else if ( wordCountType === 'characters_including_spaces' ) { - trimmedExcerpt = rawOrRenderedExcerpt.trim().split( '', excerptLength ); + trimmedExcerpt = rawOrRenderedExcerpt + .trim() + .split( '', excerptLength ) + .join( '' ); } trimmedExcerpt = trimmedExcerpt + '...';