This is a pretty ugly solution, but it gets the job done (on demo.redmine.org which currently runs with redmine version 2.5.0.devel.12954
):
some sample txt
with a few empty lines
is displayed as
some sample txt
with a few empty lines