Search code examples
excelmeteorline-breaks

Line Breaks when reading excel file on html


I am having problems introducing break lines for my bullet points. I am using a meteorjs application that is hosted on heroku, and using readxlsx.

I am reading entries from an excel file, but it is being read as one whole text block, and I have tried many ways to introduce line breaks such as including <br> inside the text, but to no avail. Currently, the bullet points are symbols added in excel.

Would greatly appreciate any help. Thank you.

Website can be accessed at http://zera.herokuapp.com/drugdetail/Paracetamol

I have included screenshots of the excel sheet

Screenshot of Excel Excel Screenshot

Screenshot of Website As you can see, the bullet points look very off. Website Screenshot

Screenshot of Web Developer Tools

Web developer tools (when inspecting)


Solution

  • Problem solved with adding css:

    white-space:pre-line; margin-top:-20px;