Skip to content

Commit

Permalink
Removed p tags and added whitespace instead. (#41633)
Browse files Browse the repository at this point in the history
  • Loading branch information
zinigor authored Feb 7, 2025
1 parent 276eb07 commit e33f0ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/cli/helpers/doc-parser/src/class-doc-parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,7 @@ function ( Node $node ) {

if ( ! empty( $entry->text ) ) {
$block['doc']['description'] .=
'<p>'
. str_replace( array( "\r\n", "\n", "\r" ), '</p><p>', $entry->text )
. '</p>';
str_replace( array( "\r\n", "\n", "\r" ), ' ', $entry->text );
}
}

Expand Down

0 comments on commit e33f0ec

Please sign in to comment.