lziosi opened a new issue, #20258: URL: https://github.com/apache/superset/issues/20258
Found using Superset 1.3.2. I have a text column called description in Postgresql with strings like: "\r\n\r\nTitle". When I display these strings in a Table chart, the carriage return an line feed are not rendered (all text appears on the same line). I can workaround this by creating a derived column with the function: `regexp_replace(description, E'[\\n\\r]+', '</br>', 'g' )` I have found an old closed defect that should have fixed this: https://github.com/apache/superset/pull/2118/commits/e762978b42f9d639e0e3073c589eb4039968fc84#diff-e4cefda577d63cfaafae[…]46b45c7fce61e56362e207f915 But the referenced code files (Table.css and Table.js) are not in the latest version of the repository. This recent change: https://github.com/apache/superset/pull/18822/commits/66adcc9c8fb8b3987e39fd9c3737962867dcf49a shows that: `"white-space: nowrap;"` was changed to `"white-space: normal;"` That would explain why `\r\n `are no longer honored (it used to be `"white-space: pre;"` at the time of the earlier fix). It seems to me that `"pre-wrap"` might be the most useful option: https://developer.mozilla.org/en-US/docs/Web/CSS/white-space Would it be possible to change this or introduce an option? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
