-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Table visualization does not render \r\n as newline #20258
Comments
@prosdev0107 could you take a look? thanks! |
@yousoph I carefully took an enough check and test. Please let me know your idea. |
I have a same problem, For now, web shows newline to just one space, when I download csv file and load it to google sheet, So now I always download and use google sheet for seeing newline. |
@yousoph Could you check this issue again? I hope someone updated this issue. |
@prosdev0107 Could you check this issue once again? Is there any solution? |
I have the same issue, we come up with transforming it into |
Closing this out for now, since:
As always, we'd be more than happy to review a PR. And if anyone else disagrees, and thinks this is truly a bug, I'm more than happy to re-open this. |
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:
e762978#diff-e4cefda577d63cfaafae%5B%E2%80%A6%5D46b45c7fce61e56362e207f915
But the referenced code files (Table.css and Table.js) are not in the latest version of the repository.
This recent change:
66adcc9
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-spaceWould it be possible to change this or introduce an option?
The text was updated successfully, but these errors were encountered: