forked from sendgrid/sendgrid-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sendgrid#692 multi line codes in <pre> turn to one line after mail send.
Cleared the issue sendgrid#692.
- Loading branch information
1 parent
f0449de
commit e7cf6fd
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! | ||
|