diff --git a/etemplate/inc/class.bo_tracking.inc.php b/etemplate/inc/class.bo_tracking.inc.php
index cfcb7c9a1d..b8c9ef32ee 100644
--- a/etemplate/inc/class.bo_tracking.inc.php
+++ b/etemplate/inc/class.bo_tracking.inc.php
@@ -834,7 +834,7 @@ abstract class bo_tracking
if (empty($detail['value']) && !$modified) continue; // skip unchanged, empty values
$body .= $this->format_line($html_email,$detail['type'],$modified,
- $detail['label'] ? $detail['label'].': ' : '', $detail['value']);
+ $detail['label'] ? $detail['label'] : '', $detail['value']);
}
if ($html_email)
{
@@ -856,6 +856,7 @@ abstract class bo_tracking
*/
protected function format_line($html_mail,$type,$modified,$line,$data=null)
{
+ //error_log(__METHOD__.'('.array2string($html_mail).",'$type',".array2string($modified).",'$line',".array2string($data).')');
$content = '';
if ($html_mail)
@@ -881,10 +882,10 @@ abstract class bo_tracking
break;
case 'multiline':
// Only Convert nl2br on non-html content
- $pos = strpos($line, '
html_content_allow ? $data : html::htmlspecialchars($data));
+ $this->html_content_allow = true; // to NOT do htmlspecialchars again
}
break;
case 'reply':
@@ -895,7 +896,7 @@ abstract class bo_tracking
}
$style = ($bold ? 'font-weight:bold;' : '').($size ? 'font-size:'.$size.';' : '').($color?'color:'.$color:'');
- $content = '