Hi Proje DEV!
Are you using Topic List Excerpts?
I believe you need a plugin if you want to override it to keep line breaks.
I think his is what would need to be overridden: discourse/topics_controller.rb at main · discourse/discourse · GitHub
More specifically, this line:
I didn’t try, but this may be useful for this purpose: Override existing Discourse methods in plugins
I’d be happy to have a look, but I don’t have a development install right now (and I’m bad at coding, so hopefully someone more skilled will have a more suitable answer).