Newlines in sample data are not rendered properly on the front end
See original GitHub issueExpected Behavior
I’ve just run the docker compose images and run the steps for the sample data loader as defined in the quick start guide.
When viewing the data in the Amundsen UI, I would expect these newline characters to be rendered on separate lines rather than retaining the newline character (it appears that newline character exists in the data source CSV itself).
Current Behavior
The newline characters \n
are being displayed explicitly in certain fields
Possible Solution
It looks like the bold annotations within the source CSV are being rendered into markdown correctly, I’m not sure why the newline characters are being missed.
Steps to Reproduce
- Run the docker compose setup for a local instance with Neo4j
- Run the steps for ingesting the sample data via
sample_data_loader.py
- View the Hive dataset
test_schema.test_table1
Screenshots (if appropriate)
Context
Since those characters are in the example data, my assumption would be that the UI would load them correctly.
Your Environment
- Amunsen version used: 0a71beb
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Render a string in HTML and preserve spaces and linebreaks
As part of that I have a description (retrieved from a db) that has spaces and new lines. When it is rendered the...
Read more >Make line breaks work when you render text in a React or Vue ...
These two make sure that the text wraps when line breaks are in the content, and pre-line specifically collapses multiple whitespaces into one....
Read more >Why is Splunk not maintaining line breaks as in the original log?
In search view on the Splunk search head web front end, as well as in table ... log samples and also explain where...
Read more >Proper way to render newline (\n) in a template?
I guess the question is unclear: A "\n" should be output as a newline inside of the HTML sourcecode (as a line break)....
Read more >How can I replace JSON \n line breaks with HTML <br> line ...
If one of your attributes has \n in its JSON string the InstantSearch will not display the value as a line break.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll submit a PR for the amundsen data builder to adjust this 🙂
Laying out next steps:
ReactMarkdown
which is a 3rd party component. We will have to see if there are options we have to set to that things are displayed correctly. https://github.com/rexxars/react-markdown#optionsReactMarkdown