ryan-d-williams / MMM-GoogleSheets

Google Sheets Module for MagicMirror
MIT License
27 stars 2 forks source link

Line breaks in cell are lost? #9

Closed gonzonia closed 4 years ago

gonzonia commented 4 years ago

I'm noticing that if a cell has a line break (carriage return?) It is lost when it is displayed from the module. This is the cell in Google Sheets

Screen Shot 2020-08-18 at 4 40 58 PM

This is the cell as displayed by the module.

Screen Shot 2020-08-18 at 4 41 23 PM
gonzonia commented 4 years ago

Figured it out. New lines are convereted to "whitepsace"

Added white-space: pre-line; to the custom CSS for the module and this problem goes away.