Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render newlines and multiple spaces in tables #2376

Open
pascal-pfeiffer opened this issue Jul 31, 2024 · 0 comments
Open

Render newlines and multiple spaces in tables #2376

pascal-pfeiffer opened this issue Jul 31, 2024 · 0 comments
Labels
feature Feature request ui Related to UI

Comments

@pascal-pfeiffer
Copy link

pascal-pfeiffer commented Jul 31, 2024

Is your feature request related to a problem? Please describe

I am facing the issue that I either need to use markdown or all newlines are converted to spaces and all multiple spaces are squashed to a single space when using ui.table.

This is especially an issue when displaying text from common datasets for NLP.

I am aware that markdown doesn't respect single newlines and treats them as space. But that behaviour isn't exactly common for all texts. So, I need a second option to render the raw text. Currently, wave doesn't give that option, as it also does it's own transformation of the data which makes e.g. html code unreadable. Is there any "raw text" mode that respects newlines, tabs and multiple spaces?

See my two example below:

Print from console:
image

image

Render with markdown=None:
Bildschirmfoto vom 2024-07-31 13-13-25

Render as markdown:
image

Describe the solution you'd like

A "raw text" mode that respects newlines, tabs and multiple spaces to render tables.

Describe alternatives you've considered

None

@pascal-pfeiffer pascal-pfeiffer added the feature Feature request label Jul 31, 2024
@mturoci mturoci added the ui Related to UI label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request ui Related to UI
Projects
None yet
Development

No branches or pull requests

2 participants