Преглед изворни кода

Merge pull request #172 from Trismegiste/bugfix-html-output

The 'html' tag is missing in HTML output
smiley пре 3 година
родитељ
комит
b9183b7c38
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Output/QRMarkupHTML.php

+ 1 - 1
src/Output/QRMarkupHTML.php

@@ -42,7 +42,7 @@ class QRMarkupHTML extends QRMarkup{
 		// wrap the snippet into a body when saving to file
 		if($saveToFile){
 			$html = sprintf(
-				'<!DOCTYPE html><head><meta charset="UTF-8"><title>QR Code</title></head><body>%s</body>',
+				'<!DOCTYPE html><html><head><meta charset="UTF-8"><title>QR Code</title></head><body>%s</body></html>',
 				$this->options->eol.$html
 			);
 		}