ppati000 / jodelstats

jodelstats.com: Displays the most popular posts on Jodel (jodel-app.com) using its (private) API
MIT License
24 stars 5 forks source link

Spaces are not preserved #4

Closed HendrikF closed 7 years ago

HendrikF commented 7 years ago

Post like

<p>.
<br />               .
<br />                    .
<br />                         .
<br />                                             .
<br />                        .
<br />                                     .
<br />#Sternenhimmel</p>

should not look like

.
.
.
.
.
.
#Sternenhimmel

Unfortunately I don't know ruby, but the responsible code might be https://github.com/ppati000/jodelstats/blob/master/app/views/jodel_city/_jodel_post.html.erb#L11

HendrikF commented 7 years ago

A possible solution could be to add a new css-class with white-space: pre-wrap.

ppati000 commented 7 years ago

Thanks a lot, wrapping everything into a

with white-space: pre-wrap did the trick.