diff --git a/code/DMSDocument.php b/code/DMSDocument.php
index ca2aed0..f39ee76 100644
--- a/code/DMSDocument.php
+++ b/code/DMSDocument.php
@@ -494,6 +494,14 @@ class DMSDocument extends DataObject implements DMSDocumentInterface {
return $filename;
}
+ /**
+ * Returns the Description field with HTML
tags added when there is a line break
+ * @return string Description
+ */
+ function getDescriptionWithLineBreaks() {
+ return nl2br($this->getField('Description'));
+ }
+
function getCMSFields() {
//include JS to handling showing and hiding of bottom "action" tabs
diff --git a/templates/Includes/Document.ss b/templates/Includes/Document.ss
index a533ea1..51f9acb 100644
--- a/templates/Includes/Document.ss
+++ b/templates/Includes/Document.ss
@@ -1,3 +1,4 @@
+<% if isHidden != true %>
$Description
+$DescriptionWithLineBreaks
<% end_if %> -