--- a/documents/template.inc.php +++ b/documents/template.inc.php @@ -61,14 +61,17 @@ Australian Disclosure Logs
@@ -89,7 +93,9 @@ - + "; + } + ?> @@ -149,11 +157,11 @@ function displayLogEntry($row, $idtoname) { $result = ""; $result .= '
'; - $result .= '

: " . truncate($row->value->title, 120) . ""; - $result .= '(' . $idtoname[$row->value->agencyID] . ')

'; - $result .= "

Title" . $row->value->title . "
"; + $result .= '

: " . truncate($row->value->title, 120) . ""; + $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 +171,13 @@ if (isset($row->value->links)) { $result .= '

Links/Documents

"; } $result .= " ID: " . strip_tags($row->value->docID) . ""; - $result .= "
"; + $result .= "\n"; return $result; }