diff --git a/includes/build-visual-html-tree.php b/includes/build-visual-html-tree.php
index ac31a0a..5187ea9 100644
--- a/includes/build-visual-html-tree.php
+++ b/includes/build-visual-html-tree.php
@@ -202,7 +202,7 @@ static function ( $a, $b ) {
case '#cdata-section':
case '#text':
$text_content = $processor->get_modifiable_text();
- if ( '' === trim( $text_content, " \f\t\r\n" ) ) {
+ if ( '' === $text_content ) {
break;
}
$was_text = true;
@@ -237,7 +237,7 @@ static function ( $a, $b ) {
++$indent_level;
}
- // If they're no attributes, we're done here.
+ // When no attributes are present, there’s nothing left to do.
if ( empty( $block_attrs ) ) {
break;
}