diff --git a/index.html b/index.html
index 1e2c4356..790a4d54 100644
--- a/index.html
+++ b/index.html
@@ -8119,7 +8119,7 @@
-
+
diff --git a/modules/io/load.js b/modules/io/load.js
index bc9781fe..cd00b28c 100644
--- a/modules/io/load.js
+++ b/modules/io/load.js
@@ -153,11 +153,21 @@ async function uncompress(compressedData) {
async function parseLoadedResult(result) {
try {
const resultAsString = new TextDecoder().decode(result);
+
// data can be in FMG internal format or base64 encoded
const isDelimited = resultAsString.substring(0, 10).includes("|");
- const decoded = isDelimited ? resultAsString : decodeURIComponent(atob(resultAsString));
+ let content = isDelimited ? resultAsString : decodeURIComponent(atob(resultAsString));
- const mapData = decoded.split("\r\n"); // split by CRLF
+ // fix if svg part has CRLF line endings instead of LF
+ const svgMatch = content.match(/