--- a/documents/template.inc.php +++ b/documents/template.inc.php @@ -150,10 +150,10 @@ $result = ""; $result .= '
Title" . $row->value->title . "
";
+ $result .= ' (' . $idtoname[$row->value->agencyID] . ')';
+ $result .= "
Title: " . $row->value->title . "
";
if (isset($row->value->description)) {
- $result .= str_replace("\n", "
", $row->value->description);
+ $result .= str_replace("\n", "
", preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "",trim($row->value->description)));
}
if (isset($row->value->notes)) {
$result .= "
Note: " . $row->value->notes;
@@ -163,13 +163,13 @@
if (isset($row->value->links)) {
$result .= '