GitHub onebox wrongly adds extra empty lines after each code line in the emails

An original code (correct rendering):
https://github.com/magento/magento2/blob/720667e/lib/internal/Magento/Framework/DB/Transaction.php#L49-L60

A email with the code (wrong rendering: extra empty lines are added, the screenshot is taken in the GMail web interface):

2 Likes

Are you sure there are empty lines there and its not simply that the CSS is a bit off?

1 Like

The line breaks between the <li> tags are preserved because the code is inside the <pre> tag.
Additionally, each line of code has a bottom padding of 10px:

2 Likes

Now it became even worse: the violet background now covers only a part of the code block:

has been resolved for a while