mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
Partial fix for broken HR tag's in Email...
This commit is contained in:
parent
335e1b988a
commit
54314dda65
2 changed files with 18 additions and 15 deletions
|
@ -202,8 +202,9 @@ namespace Ombi.Services.Jobs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
string escapedHtml = new string(html.Where(c => !char.IsControl(c)).ToArray());
|
||||||
Send(newletterSettings, html, plexSettings, testEmail);
|
Log.Debug(escapedHtml);
|
||||||
|
Send(newletterSettings, escapedHtml, plexSettings, testEmail);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void GenerateMovieHtml(List<RecentlyAddedChild> movies, PlexSettings plexSettings, StringBuilder sb)
|
private void GenerateMovieHtml(List<RecentlyAddedChild> movies, PlexSettings plexSettings, StringBuilder sb)
|
||||||
|
@ -516,10 +517,12 @@ namespace Ombi.Services.Jobs
|
||||||
|
|
||||||
private void EndLoopHtml(StringBuilder sb)
|
private void EndLoopHtml(StringBuilder sb)
|
||||||
{
|
{
|
||||||
|
//NOTE: BR have to be in TD's as per html spec or it will be put outside of the table...
|
||||||
|
//Source: http://stackoverflow.com/questions/6588638/phantom-br-tag-rendered-by-browsers-prior-to-table-tag
|
||||||
|
sb.Append("<hr />");
|
||||||
|
sb.Append("<br />");
|
||||||
|
sb.Append("<br />");
|
||||||
sb.Append("</td>");
|
sb.Append("</td>");
|
||||||
sb.Append("<hr>");
|
|
||||||
sb.Append("<br>");
|
|
||||||
sb.Append("<br>");
|
|
||||||
sb.Append("</tr>");
|
sb.Append("</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -157,14 +157,14 @@
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{@RECENTLYADDED}
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- END MAIN CONTENT AREA -->
|
<!-- END MAIN CONTENT AREA -->
|
||||||
</table>
|
</table>
|
||||||
|
{@RECENTLYADDED}
|
||||||
<!-- START FOOTER -->
|
<!-- START FOOTER -->
|
||||||
<div class="footer" style="clear: both; padding-top: 10px; text-align: center; width: 100%;">
|
<div class="footer" style="clear: both; padding-top: 10px; text-align: center; width: 100%;">
|
||||||
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;" width="100%">
|
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;" width="100%">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue