Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Use a monospaced font for the plain text newsletter preview (see #6790)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Mar 17, 2014
1 parent 751aaec commit 75c7078
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions system/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Contao Open Source CMS changelog
Version 3.2.9 (2014-XX-XX)
--------------------------

### Fixed
Use a monospaced font for the plain text newsletter preview (see #6790).

### Fixed
Adjust the `vScrollTo()` offset if the paste hint is visible (see #6478).

Expand Down
2 changes: 1 addition & 1 deletion system/modules/newsletter/classes/Newsletter.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public function send(\DataContainer $objDc)
' . $html . '
</div>' : '') . '
<div class="preview_text">
' . nl2br_html5($text) . '
<pre style="white-space:pre-wrap">' . $text . '</pre>
</div>
<div class="tl_tbox">
Expand Down
2 changes: 1 addition & 1 deletion system/modules/newsletter/dca/tl_newsletter.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ public function listNewsletters($arrRow)
<div class="cte_type ' . (($arrRow['sent'] && $arrRow['date']) ? 'published' : 'unpublished') . '"><strong>' . $arrRow['subject'] . '</strong> - ' . (($arrRow['sent'] && $arrRow['date']) ? sprintf($GLOBALS['TL_LANG']['tl_newsletter']['sentOn'], Date::parse($GLOBALS['TL_CONFIG']['datimFormat'], $arrRow['date'])) : $GLOBALS['TL_LANG']['tl_newsletter']['notSent']) . '</div>
<div class="limit_height' . (!$GLOBALS['TL_CONFIG']['doNotCollapse'] ? ' h128' : '') . '">' . (!$arrRow['sendText'] ? '
' . $arrRow['content'] . '<hr>' : '' ) . '
' . nl2br_html5($arrRow['text']) . '
<pre style="white-space:pre-wrap">' . $arrRow['text'] . '</pre>
</div>' . "\n";
}

Expand Down

0 comments on commit 75c7078

Please sign in to comment.