WISE-383 #resolve

This commit is contained in:
Ezequiel Bergamaschi
2015-04-25 01:06:06 -03:00
parent 7edf167bfe
commit 4474d7fb0b
5 changed files with 987 additions and 1 deletions

View File

@@ -183,7 +183,7 @@ public class ExporterFactory {
} catch (SAXException e) {
// It must be a corrupted SVG format. Try to hack it and try again ...
svgXml = svgXml.replaceAll("<image([^>]+)>", "<image$1/>");
svgXml = svgXml.replaceAll("\u001B", "");
final Reader in = new CharArrayReader(svgXml.toCharArray());
final InputSource is = new InputSource(in);
document = documentBuilder.parse(is);