Title: Description Missing New Lines
Last modified: May 15, 2023

---

# Description Missing New Lines

 *  Resolved [tomkennh](https://wordpress.org/support/users/tomkennh/)
 * (@tomkennh)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/description-missing-new-lines-2/)
 * I can’t get a line break in the product description. Please show me how to solve
   it. Thank !

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * (@xue28)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/description-missing-new-lines-2/#post-16739217)
 * Hi [@tomkennh](https://wordpress.org/support/users/tomkennh/)
 * Thanks for reaching out!
 * I understand that you’re unable to add a line break in the product description
   field.
 * I replicated the scenario on my personal site running on the [default Storefront theme](https://woocommerce.com/storefront/),
   however, I am unable to reproduce the issue on my end.
 * **Back-end:**
 * ![](https://i0.wp.com/snipboard.io/nYszJw.jpg?ssl=1)
 * **Front-end:**
 * ![](https://i0.wp.com/snipboard.io/qBTopv.jpg?ssl=1)
 * Could you please provide additional details so I can better assist you?
 * If a screenshot would be helpful, I’d recommend using [https://snipboard.io](https://snipboard.io).
   You can share the direct link to the image as a response to this topic.
 * Furthermore, I’d like to understand your site properly. Please share your **System
   Status Report** that you can find via `WooCommerce > Status`. Select `Get system
   report` and then `Copy for support`. Once you’ve done that, you can paste it 
   into your reply here.
 * If you could also provide the **fatal error logs** (if any) under `WooCommerce
   > Status > Logs`.
 * You could copy and paste your reply here or paste it via [https://gist.github.com/](https://gist.github.com/)
   and send the link here.
 * Thanks!
 *  Thread Starter [tomkennh](https://wordpress.org/support/users/tomkennh/)
 * (@tomkennh)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/description-missing-new-lines-2/#post-16739326)
 * ![](https://i0.wp.com/snipboard.io/1fLK8B.jpg?ssl=1)
 * _here is the text in the editor_
 * ![](https://i0.wp.com/snipboard.io/Rv92tL.jpg?ssl=1)
 * _and here is the text displayed on the product page_
 * 
   I think HTML tags stripped.
 *  [Saif](https://wordpress.org/support/users/babylon1999/)
 * (@babylon1999)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/description-missing-new-lines-2/#post-16739361)
 * Hello [@tomkennh](https://wordpress.org/support/users/tomkennh/),
 * > I think HTML tags stripped.
 * I believe you are importing products from Square. If that’s the case, it is expected
   that all tags will be removed; the description will be converted to plain text.
 * To resolve this issue, you can add the following snippet using a code-adding 
   plugin such as [Code Snippets](https://wordpress.org/plugins/code-snippets/):
 *     ```wp-block-code
       /**
        * Enable HTML descriptions during Square import
        *
        * @param array $data Product data.
        * @param SquareConnectModelCatalogObject $catalog_object The catalog object from the Square API.
        * @param WooCommerceSquareSyncProduct_Import $product_import Import class instance.
        *
        * @return array
        */
       function my_square_enable_html_description( $data, $catalog_object, $product_import ) {
           $data['enable_html_description'] = true;
           return $data;
       }
       add_filter( 'woocommerce_square_create_product_data', 'my_square_enable_html_description', 10, 3 );
       ```
   
 * For more context, [you can check this part of the documentation](https://woocommerce.com/document/woocommerce-square/sync-settings/#section-9).
 * Hope this helps!
 *  Thread Starter [tomkennh](https://wordpress.org/support/users/tomkennh/)
 * (@tomkennh)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/description-missing-new-lines-2/#post-16740265)
 * I do your instructions but it still doesn’t work 🙁
 *  [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * (@xue28)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/description-missing-new-lines-2/#post-16740273)
 * Hi [@tomkennh](https://wordpress.org/support/users/tomkennh/)
 * Thanks for trying [@babylon1999](https://wordpress.org/support/users/babylon1999/)
   solution above.
 * Can you please try to switch to the [default Storefront theme](https://woocommerce.com/storefront/)
   and only WooCommerce, Square and Code Snippets plugins are enabled, try to run
   a product import using Square and see if this works?
 * Otherwise, I’d like to understand your site properly. Please share your **System
   Status Report** that you can find via `WooCommerce > Status`. Select `Get system
   report` and then `Copy for support`. Once you’ve done that, you can paste it 
   into your reply here.
 * If you could also provide the **fatal error logs** (if any) under `WooCommerce
   > Status > Logs`.
 * You could copy and paste your reply here or paste it via [https://gist.github.com/](https://gist.github.com/)
   and send the link here.
 * Thanks!
 *  [Igor H](https://wordpress.org/support/users/ihereira/)
 * (@ihereira)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/description-missing-new-lines-2/#post-16830136)
 * Hi,
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   we’ll be here if and/or when you are ready to continue.
 * Best.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Description Missing New Lines’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-square/assets/icon-256x256.png?rev=3234354)
 * [WooCommerce Square](https://wordpress.org/plugins/woocommerce-square/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-square/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-square/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-square/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-square/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-square/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [Igor H](https://wordpress.org/support/users/ihereira/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/description-missing-new-lines-2/#post-16830136)
 * Status: resolved