Description page attribute

I noticed that when you have multiple paragraphs or line breaks in a page description attribute it doesn't preserve any of the formatting when used with the page list (its just one giant paragraph). Is it possible to have the description use some paragraph or line break html tags?
hursey013
View Replies: View Best Answer
hursey013 replied on at Best Answer Reply
hursey013
Here's what I came up with that works, let me know if this is a poor way of doing it...
$description = nl2br($c->getCollectionDescription());
zoinks replied on at Reply
How does this solve the problem?
hursey013 replied on at Reply
hursey013
It converts plain text line breaks into HTML <br /> tags.
zoinks replied on at Reply
thanks. I had to figure out where to put it on the latest pagelist view.php... I changed lines 26-32:

<?php  
      if(!$controller->truncateSummaries){
         //nl2br preserves the line breaks  
         echo nl2br($cobj->getCollectionDescription());
      }else{
         //nl2br preserves the line breaks  
         echo nl2br($textHelper->shorten($cobj->getCollectionDescription(),$controller->truncateChars));
      }
      ?>