projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
16e8131
)
Fix [#509] Bugtracker eats newlines in descrition and comment
author
Alain Peyrat
<aljeux@free.fr>
Tue, 16 Oct 2012 16:48:59 +0000
(18:48 +0200)
committer
Alain Peyrat
<aljeux@free.fr>
Tue, 16 Oct 2012 16:50:22 +0000
(18:50 +0200)
src/common/tracker/include/ArtifactHtml.class.php
patch
|
blob
|
history
diff --git
a/src/common/tracker/include/ArtifactHtml.class.php
b/src/common/tracker/include/ArtifactHtml.class.php
index 9f4a3c4a78892a3ce20accc424eef6826b7e9731..bb3a5e8e641f8afa635bd69b8dc31fb6e9d03dff 100644
(file)
--- a/
src/common/tracker/include/ArtifactHtml.class.php
+++ b/
src/common/tracker/include/ArtifactHtml.class.php
@@
-37,7
+37,7
@@
class ArtifactHtml extends Artifact {
$result = $this->getDetails();
$result = util_gen_cross_ref($result, $this->ArtifactType->Group->getID());
//$result = util_line_wrap( $result, 120,"\n");
$result = $this->getDetails();
$result = util_gen_cross_ref($result, $this->ArtifactType->Group->getID());
//$result = util_line_wrap( $result, 120,"\n");
- $result =
preg_replace('/\r|\n/', '<br />',
$result);
+ $result =
nl2br(
$result);
$title_arr = array();
if ($editable === true) {
$title_arr = array();
if ($editable === true) {
@@
-85,7
+85,7
@@
class ArtifactHtml extends Artifact {
$text = db_result($result, $i, 'body');
$text = util_gen_cross_ref($text, $this->ArtifactType->Group->getID());
//$text = util_line_wrap( $text, 120,"\n");
$text = db_result($result, $i, 'body');
$text = util_gen_cross_ref($text, $this->ArtifactType->Group->getID());
//$text = util_line_wrap( $text, 120,"\n");
- $text =
preg_replace('/\r|\n/', '<br />',
$text);
+ $text =
nl2br(
$text);
echo "<br /><br />".$text.'</td></tr>';
}
echo "<br /><br />".$text.'</td></tr>';
}