diff --git a/code/DMSDocument.php b/code/DMSDocument.php old mode 100644 new mode 100755 index f39ee76..9691a97 --- a/code/DMSDocument.php +++ b/code/DMSDocument.php @@ -498,7 +498,7 @@ class DMSDocument extends DataObject implements DMSDocumentInterface { * Returns the Description field with HTML
tags added when there is a line break * @return string Description */ - function getDescriptionWithLineBreaks() { + function getDescriptionWithLineBreak() { return nl2br($this->getField('Description')); } diff --git a/templates/Includes/Document.ss b/templates/Includes/Document.ss index 51f9acb..4514a23 100644 --- a/templates/Includes/Document.ss +++ b/templates/Includes/Document.ss @@ -13,7 +13,7 @@ | Last Changed: $LastChanged.Nice

<% if Description %> -

$DescriptionWithLineBreaks

+

$DescriptionWithLineBreak

<% end_if %> <% end_if %> \ No newline at end of file