diff --git a/Classes/PHPExcel/Writer/HTML.php b/Classes/PHPExcel/Writer/HTML.php
index 9337c1f3..ff44cba8 100644
--- a/Classes/PHPExcel/Writer/HTML.php
+++ b/Classes/PHPExcel/Writer/HTML.php
@@ -302,15 +302,36 @@ class PHPExcel_Writer_HTML implements PHPExcel_Writer_IWriter {
}
// Construct HTML
+ $properties = $this->_phpExcel->getProperties();
$html = '' . PHP_EOL;
$html .= '' . PHP_EOL;
$html .= '' . PHP_EOL;
$html .= '
' . PHP_EOL;
- $html .= ' ' . PHP_EOL;
- $html .= ' ' . htmlspecialchars($this->_phpExcel->getProperties()->getTitle()) . '' . PHP_EOL;
+ $html .= ' ' . PHP_EOL;
+ if ($properties->getTitle() > '')
+ $html .= ' ' . htmlspecialchars($properties->getTitle()) . '' . PHP_EOL;
+
+ if ($properties->getCreator() > '')
+ $html .= ' ' . PHP_EOL;
+ if ($properties->getTitle() > '')
+ $html .= ' ' . PHP_EOL;
+ if ($properties->getDescription() > '')
+ $html .= ' ' . PHP_EOL;
+ if ($properties->getSubject() > '')
+ $html .= ' ' . PHP_EOL;
+ if ($properties->getKeywords() > '')
+ $html .= ' ' . PHP_EOL;
+ if ($properties->getCategory() > '')
+ $html .= ' ' . PHP_EOL;
+ if ($properties->getCompany() > '')
+ $html .= ' ' . PHP_EOL;
+ if ($properties->getManager() > '')
+ $html .= ' ' . PHP_EOL;
+
if ($pIncludeStyles) {
$html .= $this->generateStyles(true);
}
+
$html .= ' ' . PHP_EOL;
$html .= '' . PHP_EOL;
$html .= ' ' . PHP_EOL;