# Line breaks missing from embedded tweets

**URL:** <https://meta.discourse.org/t/line-breaks-missing-from-embedded-tweets/18297>\
**Category:** Feature\
**Created:** [30 يوليو 2014، 9:52م UTC](https://meta.discourse.org/t/line-breaks-missing-from-embedded-tweets/18297 "2014-07-30T21:52:38Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Buddy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/buddy/32/41024_2.png) [@Buddy](https://meta.discourse.org/u/Buddy)\
**Post date:** [3 أغسطس 2014، 1:57ص UTC](https://meta.discourse.org/t/line-breaks-missing-from-embedded-tweets/18297/7 "2014-08-03T01:57:09Z")

</div>

Ok, it seems like this should be doable by getting the html tweet body supplied by twitter and interpolating that directly into the template. Is that correct? I don’t think mustache will allow us to do this except by including raw html.

As for the formatting, it appears twitter uses `white-space: pre-wrap;`, which is usually applied to embedded tweets with a script. The options I can see are:

- `pre` tag
- may break wrapping
- styling
- overriding css could break tweet display
- escape all whitespace
- including exotic unicode space chars?

Alternatively, you might choose to leave the twitter engine styling as-is, and let users enable ‘rich’ oembed type if they want more extensive styling. If I understand correctly, whitelisting is currently done by editing a ruby file; would it be helpful if I were to try and shift that to a configurable option, and allow enabling different oembed or opengraph types on a per-site basis?

---

_[View the full topic](https://meta.discourse.org/t/line-breaks-missing-from-embedded-tweets/18297)._
