From 16ce0da5f9b019989ceaa356ff0f24bbfc92a80c Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Fri, 26 Jun 2009 13:12:26 +0200 Subject: [PATCH] Fixed issue 240, correctly link the long URLs in the issues. --- src/IDF/Template/IssueComment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IDF/Template/IssueComment.php b/src/IDF/Template/IssueComment.php index 86448ef..7a9e4be 100644 --- a/src/IDF/Template/IssueComment.php +++ b/src/IDF/Template/IssueComment.php @@ -37,7 +37,6 @@ class IDF_Template_IssueComment extends Pluf_Template_Tag $this->project = $request->project; $this->request = $request; $this->scm = IDF_Scm::get($request->project); - if ($wordwrap) $text = wordwrap($text, 69, "\n", true); if ($esc) $text = Pluf_esc($text); if ($autolink) { $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', array($this, 'callbackSource'), $text); } + if ($wordwrap) $text = Pluf_Text::wrapHtml($text, 69, "\n"); if ($nl2br) $text = nl2br($text); if ($echo) { echo $text;