During testing on my website, I was able to reproduce this behavior too. The 'Product Tabs' block is not applying the auto paragraphs to the product content/body.
I've shared these findings with the concerned team for further review. For now, you can use the following workaround code, to make this work:
add_filter( 'the_content', 'filter_the_content_in_the_main_product_loop', 1 );
function filter_the_content_in_the_main_product_loop( $content ) {
// Check if we're inside the main loop in a single product.
if ( is_singular('product') && in_the_loop() && is_main_query() ) {
$content = '[wpv-autop]'.$content.'[/wpv-autop]';
}
return $content;
}
For the shortcode description, WooCommerce uses the WordPress excerpts feature, which usually shows the text, without any auto paragraphs or formatting.
To make the automatic paragraphing work for the short product description field, you can include the following custom code:
function filter_the_excerpt_in_the_main_product_loop( $excerpt ) {
if ( is_admin() ) {
return $excerpt;
}
if ( is_singular('product') ) {
$excerpt = '[wpv-autop]'.$excerpt.'[/wpv-autop]';
}
return $excerpt;
}
add_filter( 'get_the_excerpt', 'filter_the_excerpt_in_the_main_product_loop', 999 );
Next, replace the Toolset's "Single Field" block with WordPress' "Post Excerpt" block in the template to show this short description.
> Next, replace the Toolset's "Single Field" block with WordPress' "Post Excerpt" block in the template to show this short description.
I've included a "Post Excerpt" ( screenshot: hidden link ) block in the template and it is showing the excerpt with the line breaks ( screenshot: hidden link )
As for the excerpts, they are generally expected to show as plain text. So for anyone looking to show them formatted, the custom code can be used, on a case-to-case basis.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.