From 1a4721ef4ac844c668a1614cf3a6e728c624aa7c Mon Sep 17 00:00:00 2001 From: Jens Mönig Date: Thu, 21 May 2015 20:19:22 +0200 Subject: Fix encoding for exported libraries of global blocks --- byob.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'byob.js') diff --git a/byob.js b/byob.js index bc0f75f..86b6b4b 100644 --- a/byob.js +++ b/byob.js @@ -106,7 +106,7 @@ SymbolMorph, isNil*/ // Global stuff //////////////////////////////////////////////////////// -modules.byob = '2015-May-01'; +modules.byob = '2015-May-21'; // Declarations @@ -3297,7 +3297,9 @@ BlockExportDialogMorph.prototype.selectNone = function () { // BlockExportDialogMorph ops BlockExportDialogMorph.prototype.exportBlocks = function () { - var str = this.serializer.serialize(this.blocks); + var str = encodeURIComponent( + this.serializer.serialize(this.blocks) + ); if (this.blocks.length > 0) { window.open(encodeURI('data:text/xml,' + str - + '')); + + ''); } else { new DialogBoxMorph().inform( 'Export blocks', diff --git a/history.txt b/history.txt index 62d267d..adaf659 100755 --- a/history.txt +++ b/history.txt @@ -2518,3 +2518,7 @@ ______ 150521 ------ * BYOB: Fix encoding for exported libraries of global blocks + +150521 +------ +* BYOB: Fix encoding glitch -- cgit v1.3.1