the-turk / flarum-diff

View post edit histories in your Flarum forum.
https://discuss.flarum.org/d/22779-diff-for-flarum
MIT License
8 stars 6 forks source link

Can't render new lines when you disable text formatting for previews #10

Closed the-turk closed 4 years ago

the-turk commented 4 years ago

Bug Report

Current Behavior If you disable text formatting for previews, post's preview will look like a mess if it's including new lines.

Steps to Reproduce

  1. Edit a post which includes new lines
  2. Click on "original content" in revision list
  3. Switch to "Preview" mode
  4. There are no new lines anymore

Expected Behavior New lines should be rendered even if you disable text formatting for previews.

Screenshots

Environment

Possible Solution Implement these properties on .previewContainer class:

white-space: pre-wrap;
word-break: break-word;