简体   繁体   中英

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 of Website As you can see, the bullet points look very off. 网站截图

Screenshot of Web Developer Tools

Web开发人员工具(检查时)

Problem solved with adding css:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM