magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.55k stars 9.32k forks source link

Line breaks / New Lines in text area custom attribute in a product are stripped out in admin product grid #38552

Open cptX opened 7 months ago

cptX commented 7 months ago

Description

I have created a custom attribute in products declared as a text area. There I need to write some lines where line breaks are important. This attribute I want to be visible in the admin product grid. I checked that in the database the line breaks are there, but when presented in the product grid they are stripped out.

I cannot find which file from magento is responsible for this stripping. I don't know if stripping the line breaks makes any sense in general. I would like to have them and if there is no plan for magento team to do so please give me some light on where to search to modify this!

Expected behavior

Was expecting the intermediate line breaks in a text area to be represented to the admin in product grid.

Benefits

Line breaks are useful to separate your info, so stripping them out makes the info less readable, especially in admin product grid.

Additional information

No response

Release note

No response

m2-assistant[bot] commented 7 months ago

Hi @cptX. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue: