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)} {$change.creation_dtime|dateago:"wihtout"} -{issuetext $change.summary, $request}{if $change.fullmessage}

{issuetext $change.fullmessage, $request}{/if} +{issuetext $change.summary, $request}{if $change.fullmessage}

{issuetext $change.fullmessage, $request, true, false, true, true, true}{/if} diff --git a/src/IDF/templates/idf/source/commit.html b/src/IDF/templates/idf/source/commit.html index 6e0eb6b..035e8ca 100644 --- a/src/IDF/templates/idf/source/commit.html +++ b/src/IDF/templates/idf/source/commit.html @@ -13,7 +13,7 @@ {trans 'Commit:'}{$cobject.commit} -{trans 'Message:'}{issuetext $cobject.title, $request}{if isset($cobject.full_message)}

{issuetext $cobject.full_message, $request}{/if} +{trans 'Message:'}{issuetext $cobject.title, $request}{if isset($cobject.full_message)}

{issuetext $cobject.full_message, $request, true, false, true, true, true}{/if} {if count($diff.files)}