From 608a2edba78056d2b91d78ddef819f1fcd356965 Mon Sep 17 00:00:00 2001 From: Chris Wild Date: Wed, 7 Feb 2018 11:59:25 +0000 Subject: [PATCH] HTML writer creates a generator meta tag Fixes #312 Closes #362 --- CHANGELOG.md | 4 ++++ src/PhpSpreadsheet/Writer/Html.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 47734383..88f8ad6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Added + +- HTML writer creates a generator meta tag - [#312](https://github.com/PHPOffice/PhpSpreadsheet/issues/312) + ### Fixed - Avoid potentially unsupported PSR-16 cache keys - [#354](https://github.com/PHPOffice/PhpSpreadsheet/issues/354) diff --git a/src/PhpSpreadsheet/Writer/Html.php b/src/PhpSpreadsheet/Writer/Html.php index 4de69ce3..f46905ec 100644 --- a/src/PhpSpreadsheet/Writer/Html.php +++ b/src/PhpSpreadsheet/Writer/Html.php @@ -352,10 +352,10 @@ class Html extends BaseWriter // Construct HTML $properties = $this->spreadsheet->getProperties(); $html = '' . PHP_EOL; - $html .= '' . PHP_EOL; $html .= '' . PHP_EOL; $html .= ' ' . PHP_EOL; $html .= ' ' . PHP_EOL; + $html .= ' ' . PHP_EOL; if ($properties->getTitle() > '') { $html .= ' ' . htmlspecialchars($properties->getTitle()) . '' . PHP_EOL; }