diff --git a/src/IDF/Template/IssueComment.php b/src/IDF/Template/IssueComment.php index 5b5e96d..7bca605 100644 --- a/src/IDF/Template/IssueComment.php +++ b/src/IDF/Template/IssueComment.php @@ -32,7 +32,7 @@ class IDF_Template_IssueComment extends Pluf_Template_Tag private $request = null; private $scm = null; - function start($text, $request, $echo=true, $wordwrap=true, $esc=true, $autolink=true) + function start($text, $request, $echo=true, $wordwrap=true, $esc=true, $autolink=true, $nl2br=false) { $this->project = $request->project; $this->request = $request; @@ -53,6 +53,7 @@ class IDF_Template_IssueComment extends Pluf_Template_Tag $text = preg_replace_callback('#(src:)([^\s\(\)]+)#im', array($this, 'callbackSource'), $text); } + if ($nl2br) $text = nl2br($text); if ($echo) { echo $text; } else { diff --git a/src/IDF/templates/idf/source/changelog.html b/src/IDF/templates/idf/source/changelog.html index 9a594f5..e249369 100644 --- a/src/IDF/templates/idf/source/changelog.html +++ b/src/IDF/templates/idf/source/changelog.html @@ -13,7 +13,7 @@ {aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $change.scm_id)}