How to keep line breaks on excerpts?

This can be done using this CSS:

.topic-list .topic-excerpt {
    white-space: pre-line;
}

This was originally described here: How can I keep post views on lists - #5 by Don


edit:
:information_source: since being able to keep line breaks in excerpts was asked multiple times, I’ve added this as a tip/trick on the official topic.

2 Likes