Skip to content

Commit

Permalink
Maintain formatting in email report/update lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Jun 21, 2019
1 parent e3a8823 commit 840649c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/email/default/_email_comment_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<img style="[% list_item_photo_style %]" src="[% inline_image(update.get_first_image_fp) %]" alt="">
</a>
[%~ END %]
<p style="[% list_item_p_style %]">&ldquo;[% update.item_text | html %]&rdquo;</p>
[% update.item_text | html_para | replace('<p>', '<p style="' _ list_item_p_style _ '">&ldquo;') %]
<p style="[% list_item_date_style %]">
[%~ update.item_name | html IF update.item_name AND NOT update.item_anonymous -%]
[% '(' _ cobrand.prettify_dt(update.confirmed) _ ') ' IF cobrand.include_time_in_update_alerts -%]
Expand Down
2 changes: 1 addition & 1 deletion templates/email/default/_email_report_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h2 style="[% list_item_h2_style %]">
[%~ report.title | html ~%]
</a>
</h2>
<p style="[% list_item_p_style %]">[% report.detail | html %]</p>
[% report.detail | html_para | replace('<p>', '<p style="' _ list_item_p_style _ '">') %]
<p style="[% list_item_date_style %]">
[% cobrand.prettify_dt( report.confirmed ) %].
[% report.nearest %]
Expand Down

0 comments on commit 840649c

Please sign in to comment.