diff --git a/wise-webapp/src/main/java/com/wisemapping/exporter/ExporterFactory.java b/wise-webapp/src/main/java/com/wisemapping/exporter/ExporterFactory.java index e15a1622..e5ba98f9 100644 --- a/wise-webapp/src/main/java/com/wisemapping/exporter/ExporterFactory.java +++ b/wise-webapp/src/main/java/com/wisemapping/exporter/ExporterFactory.java @@ -217,7 +217,7 @@ public class ExporterFactory { String imgUrl = elem.getAttribute("href"); elem.removeAttribute("href"); - if(imgUrl==null || imgUrl.isEmpty()){ + if (imgUrl == null || imgUrl.isEmpty()) { imgUrl = elem.getAttribute("xlink:href"); // Do not support namespaces ... elem.removeAttribute("xlink:href"); } @@ -347,7 +347,7 @@ public class ExporterFactory { final int initTranslate = value.indexOf("(", pos); final int endTranslate = value.indexOf(")", pos); final String transate = value.substring(initTranslate + 1, endTranslate); - return transate.split(","); + return transate.contains(",") ? transate.split(",") : transate.split(" "); } } diff --git a/wise-webapp/src/test/resources/data/svg/bug2.png b/wise-webapp/src/test/resources/data/svg/bug2.png new file mode 100644 index 00000000..cb07ee19 Binary files /dev/null and b/wise-webapp/src/test/resources/data/svg/bug2.png differ diff --git a/wise-webapp/src/test/resources/data/svg/bug2.svg b/wise-webapp/src/test/resources/data/svg/bug2.svg new file mode 100644 index 00000000..81edcea6 --- /dev/null +++ b/wise-webapp/src/test/resources/data/svg/bug2.svg @@ -0,0 +1,358 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Script_Bro_P1 + + + + + + + + ??????favor + + + + + + + + + enter + + + + + + + + + ??/???????? + + + + + + + + + exit + + + + + + + + + ???????????? + + + + + + + + + ?????????? + + + + + + + + + ???????????? + + + + + + + + + ????????? + + + + + + + + + ????????? + + + + + + + + + ?????????X? + + + + + + + + + ??-->?????? + + + + + + + + + ???? + + + + + + + + + ????? + + + + + + + + + ??-->???? + + + + + + + + + ??tab + + + + + + + + + ???>???????->???? + + + + + + + + + ???>????->javascript + + + + + + + + + ???>??>?????? + + + + + + + + + ???>????>???? + + + + + + + + + ??????? + + + + + + + + + Browser ?call?SM??? + + + + + + \ No newline at end of file