--- a/documents/template.inc.php +++ b/documents/template.inc.php @@ -61,14 +61,17 @@ Australian Disclosure Logs
Title" . $row->value->title . "
" . str_replace("\n", "
", $row->value->description);
+ $result .= '
Title: " . $row->value->title . "
";
+ if (isset($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;
}
@@ -157,13 +171,13 @@
if (isset($row->value->links)) {
$result .= '