Rothamsted-Ecoinformatics / eRA

e-RA website code
3 stars 0 forks source link

Preserve GLTEN paragraph formatting #8

Closed richardostler closed 4 years ago

richardostler commented 4 years ago

Paragraph formatting is being lost e.g. see the experiment design description for Broadbalk current period is one paragraph block, whereas GLTEN is several paragraph blocks.

Assuming the formatting isn't lost in the JSON extracted from GLTEN, please can you preserve it.

nathcast commented 4 years ago

I have added style=\"white-space: pre-wrap;\" to the tag that styles the descriptions in (I beleive) al the fields that are susceptble to have a long description. Now, the carriage returns will be visible.

If that is enough, please close issue. Or raise a "new feature request" to make a function to enable a better treatment of text fields. (when data input allows for MD)

richardostler commented 4 years ago

Seems to be working well, so should be fine for now.