diff --git a/presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionUI.inc b/presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionUI.inc
index f3b8b51..0a1e5f3 100644
--- a/presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionUI.inc
+++ b/presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionUI.inc
@@ -152,24 +152,30 @@ function getCommentBody($oComment, $iDocumentID, $oUser) {
$sBody = urldecode(str_replace("%0D%0A","
",str_replace("+", " ",$oComment->getBody())));
$aBody = explode("
",$sBody);
$sBody = "";
- $numChars = 80; // number of chars in a line
+ $numChars = 160; // number of chars in a line
-
// Used for wrapping text that may be too long on one any line
for ($i=0; $i <= sizeof($aBody) ;$i++) {
- $sBody .= $aBody[$i] . "\n";
- }
+ if (strlen($aBody[$i]) >$numChars){
+ $loop = (strlen($aBody[$i]) - (strlen($aBody[$i])) % $numChars)/$numChars +1;
+
+ $j=$numChars;
+ for($j=0; $j < $loop; $j++ ) {
+ $sBody .= "
" . substr($aBody[$i],($j*$numChars), $numChars) . "";
+ }
+ } else { $sBody .= "
" . $aBody[$i]; }
+ }
$sToRender .= "
";