# בלוקי קוד במיילים מכילים שורות חדשות ריקות

**URL:** <https://meta.discourse.org/t/code-blocks-in-emails-have-empty-newlines/195271>\
**Category:** Product Support\
**Created:** [28 ביוני,‏ 2021,‏ 7:34pm UTC](https://meta.discourse.org/t/code-blocks-in-emails-have-empty-newlines/195271 "2021-06-28T19:34:39Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![scztt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/scztt/32/105683_2.png) [@scztt](https://meta.discourse.org/u/scztt)\
**Post date:** [28 ביוני,‏ 2021,‏ 7:34pm UTC](https://meta.discourse.org/t/code-blocks-in-emails-have-empty-newlines/195271/1 "2021-06-28T19:34:39Z")

</div>

Code blocks appear to be formatted with an empty newline between each line ONLY in the HTML portion of emails. They appear correctly on both the forum itself, and in the plain text portion of the email. This is not an email formatting / CSS problem - there is an actual newline inserted in the source ONLY in the email case.

An example: [[iFFT Freeze/Scrub - #25 by toneburst - Questions - scsynth](https://scsynth.org/t/ifft-freeze-scrub/3802/25)]

The original source text of the post looks like:

 ![Screen Shot 2021-06-28 at 8.58.41 PM](https://global.discourse-cdn.com/meta/original/3X/e/6/e612c8eed85b2feaad017b4e4e43310b79313b4b.png)

The formatted post on the website looks like:

 ![Screen Shot 2021-06-28 at 8.58.11 PM](https://global.discourse-cdn.com/meta/original/3X/4/b/4be64ec98c265e8afe303feaa1db8ab173355264.png)

The HTML email received, however, looks like:

 ![Screen Shot 2021-06-28 at 8.59.21 PM](https://global.discourse-cdn.com/meta/original/3X/6/5/6560e88dec35db84184890d3d0823b8184b63bf2.png)

In the source for the email, you can see that all newlines have been doubled:

 ![Screen Shot 2021-06-28 at 8.59.51 PM](https://global.discourse-cdn.com/meta/original/3X/3/a/3a9bd26db34c51743cebcdb33594cc43658802dd.png)

---

_[View the full topic](https://meta.discourse.org/t/code-blocks-in-emails-have-empty-newlines/195271)._
