Skip to content

Commit

Permalink
sendgrid#692 multi line codes in <pre> turn to one line after mail send.
Browse files Browse the repository at this point in the history
Cleared the issue sendgrid#692.
  • Loading branch information
ssiddhantsharma committed Oct 3, 2018
1 parent f0449de commit e7cf6fd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions #692.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
You can try to use this one -

<div style="white-space: pre-wrap;"><code>
int a = 10;
int b = 10;
int d = 10;
</code>
</div>

And if you insist on using <pre> only and not <div> then,

<pre style="white-space: pre-wrap; word-break: keep-all;">
<code>
int a = 10;
int b = 10;
int d = 10;
</code>
</pre>

pre { overflow: auto; }
Using this will allow a fixed size with horizontal scrolling for long lines, which I guess is good for a blog.

Just experiment with these and let me know!

0 comments on commit e7cf6fd

Please sign in to comment.