fixing png export test
parent
392176430e
commit
179a76be59
|
@ -243,7 +243,7 @@ public class MindMap {
|
|||
|
||||
// Add namespace...
|
||||
result = result.replaceFirst("<svg ", "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" ");
|
||||
result = result.replaceAll("<image([^>]+)>", "<image$1/>");
|
||||
// result = result.replaceAll("<image([^>]+)>", "<image$1/>");
|
||||
|
||||
return result.toCharArray();
|
||||
}
|
||||
|
|
|
@ -48,6 +48,8 @@ public class ExportTest {
|
|||
final ExportProperties properties = ExportProperties.create(format);
|
||||
final ExportProperties.ImageProperties imageProperties = (ExportProperties.ImageProperties) properties;
|
||||
imageProperties.setSize(ExportProperties.ImageProperties.Size.LARGE);
|
||||
String baseUrl = "file://"+svgFile.getParentFile().getAbsolutePath()+"/../../../main/webapp/images";
|
||||
properties.setBaseImagePath(baseUrl);
|
||||
|
||||
// Write content ...
|
||||
MindMap mindMap = new MindMap();
|
||||
|
|
Loading…
Reference in New Issue