Closed flachware closed 8 years ago
Sorry, not sure what you mean here. The content should just be whatever is in the Abstract field, which could be anything.
Do you mean that abstracts are showing as single paragraphs because any embedded newlines are getting collapsed? We might need to display them with white-space: pre-wrap;
.
You understood correctly, I was wondering if there is some kind of structure in the abstract data – paragraphs, newlines, whatever.
Having newlines preserved could help a bit, but is also double-edged within a responsive design (newline after a long line might not be noticeable).
Could we convert newline separated text segments into paragraphs by any chance? Paragraphs would be ideal, as we could separate them with space or text-indent (as in the design above). Long abstracts would really benefit from some (visual) structure – if possible.
technically we could inject paragraphs with some regex but I'm not sure if we should.
I'm OK converting newlines to paragraphs and seeing how well it works. If we find lots of abstracts that use newlines in non-paragraph ways, we can reconsider.
Great, let's try this. Finally we should have abstracts with 1 to n paragraphs.
Done in 51f472b7d87c7828d2f13f3269d290082fbdf921, looking good!
Nice!
is there a way we can have structured abstracts or do they have to be exactly one paragraph?