Fixed issue 240, correctly link the long URLs in the issues.

This commit is contained in:
Loic d'Anterroches 2009-06-26 13:12:26 +02:00
parent 2ab52e7eaf
commit 16ce0da5f9

View File

@ -37,7 +37,6 @@ class IDF_Template_IssueComment extends Pluf_Template_Tag
$this->project = $request->project; $this->project = $request->project;
$this->request = $request; $this->request = $request;
$this->scm = IDF_Scm::get($request->project); $this->scm = IDF_Scm::get($request->project);
if ($wordwrap) $text = wordwrap($text, 69, "\n", true);
if ($esc) $text = Pluf_esc($text); if ($esc) $text = Pluf_esc($text);
if ($autolink) { if ($autolink) {
$text = preg_replace('#([a-z]+://[^\s\(\)]+)#i', $text = preg_replace('#([a-z]+://[^\s\(\)]+)#i',
@ -53,6 +52,7 @@ class IDF_Template_IssueComment extends Pluf_Template_Tag
$text = preg_replace_callback('#(src:)([^\s\(\)]+)#im', $text = preg_replace_callback('#(src:)([^\s\(\)]+)#im',
array($this, 'callbackSource'), $text); array($this, 'callbackSource'), $text);
} }
if ($wordwrap) $text = Pluf_Text::wrapHtml($text, 69, "\n");
if ($nl2br) $text = nl2br($text); if ($nl2br) $text = nl2br($text);
if ($echo) { if ($echo) {
echo $text; echo $text;