improvements to export summary

* fix #1495 - remove duplicate ,
* use HTML5 charset attribute
* add the current Snap! language to the html tag
pull/29/head
Michael Ball 2016-11-05 14:06:47 -07:00
rodzic 3d269f1740
commit 1c8cd7c45c
1 zmienionych plików z 3 dodań i 3 usunięć

6
gui.js
Wyświetl plik

@ -3579,13 +3579,13 @@ IDE_Morph.prototype.exportProjectSummary = function (useDropShadows) {
pname = this.projectName || localize('untitled');
html = new XML_Element('html');
html.attributes['lang'] = SnapTranslator.language;
// html.attributes.contenteditable = 'true';
head = addNode('head', html);
meta = addNode('meta', head);
meta.attributes['http-equiv'] = 'Content-Type';
meta.attributes.content = 'text/html; charset=UTF-8';
meta.attributes['charset'] = 'UTF-8';
if (useDropShadows) {
css = 'img {' +
@ -3752,7 +3752,7 @@ IDE_Morph.prototype.exportProjectSummary = function (useDropShadows) {
this.saveFileAs(
'<!DOCTYPE html>' + html.toString(),
'text/html;charset=utf-8,',
'text/html;charset=utf-8',
pname,
true // request opening a new window.
);