From 580ff9c55e81aae04add43c95071c57e346a19ce Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Mon, 25 Jan 2010 14:05:05 -0500 Subject: [PATCH] - set svn:keywords --- program/steps/mail/headers.inc | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/program/steps/mail/headers.inc b/program/steps/mail/headers.inc index 653fb96..946a688 100644 --- a/program/steps/mail/headers.inc +++ b/program/steps/mail/headers.inc @@ -14,7 +14,7 @@ | Author: Aleksander Machniak <alec@alec.pl> | +-----------------------------------------------------------------------+ - $Id: mark.inc 1580 2008-06-30 09:36:18Z alec $ + $Id$ */ @@ -25,9 +25,17 @@ if ($source) { $source = htmlspecialchars(trim($source)); - $source = preg_replace('/\t/', ' ', $source); - $source = preg_replace('/^([a-z0-9_:-]+)/im', '<font class="bold">'.'\1'.'</font>', $source); - $source = preg_replace('/\r?\n/', '<br />', $source); + $source = preg_replace( + array( + '/\n[\t\s]+/', + '/^([a-z0-9_:-]+)/im', + '/\r?\n/' + ), + array( + "\n ", + '<font class="bold">\1</font>', + '<br />' + ), $source); $OUTPUT->command('set_headers', $source); $OUTPUT->send(); -- Gitblit v1.9.1