[Fusionforge-commits] r11823 - branches/Branch_5_1/src/www/tracker/include

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Dec 16 13:39:00 CET 2010


Author: lolando
Date: 2010-12-16 13:38:57 +0100 (Thu, 16 Dec 2010)
New Revision: 11823

Modified:
   branches/Branch_5_1/src/www/tracker/include/ArtifactHtml.class.php
Log:
Keep line breaks in artifact details even when they use DOS-style line endings

Modified: branches/Branch_5_1/src/www/tracker/include/ArtifactHtml.class.php
===================================================================
--- branches/Branch_5_1/src/www/tracker/include/ArtifactHtml.class.php	2010-12-16 12:07:07 UTC (rev 11822)
+++ branches/Branch_5_1/src/www/tracker/include/ArtifactHtml.class.php	2010-12-16 12:38:57 UTC (rev 11823)
@@ -35,6 +35,7 @@
 		$result = $this->getDetails();
 		$result = util_gen_cross_ref($result, $this->ArtifactType->Group->getID());
 		//$result = util_line_wrap( $result, 120,"\n");
+		$result = preg_replace('/(*ANYCRLF)$/m', '<br />', $result);
 		$result = preg_replace('/\r?\n/', '<br />', $result);
 
 		$title_arr = array();




More information about the Fusionforge-commits mailing list