This way we're also checking mistakes like closing tags that don't match their opening element, which we detected by manually running HTML Beautifier with the `-e` option, and fixed two commits ago. Note there was a false positive in the mailer layout. We don't know the cause. Maybe closing the ERB tag right before the HTML opening tag and the lack of other attributes on the tag made HTML Beautifier think the tag wasn't correctly open, but on the other hand, we have the exact same line in other layouts where HTML Beautifier works fine. We're fixing it by adding an HTML id attribute to the element.
23 lines
900 B
Plaintext
23 lines
900 B
Plaintext
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html <%= common_html_attributes %> id="mailer_layout">
|
|
<head>
|
|
<title><%= t("mailers.title") %></title>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<meta name="viewport" id="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0,maximum-scale=10.0" />
|
|
</head>
|
|
<body style="background: #fff; font-family:font-family: 'Open Sans','Helvetica Neue',arial,sans-serif !important; margin: 0 10px; padding: 0; text-align: left;">
|
|
|
|
<%= render "layouts/mailer_header" %>
|
|
|
|
<table cellpadding="0" cellspacing="0" border="0" style="background: #fff; margin: 0 auto; max-width: 700px; width:100%;">
|
|
<tbody>
|
|
<tr>
|
|
<%= yield %>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%= render "layouts/mailer_footer" %>
|
|
</body>
|
|
</html>
|