mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 15:37:56 +01:00
fixing print
This commit is contained in:
parent
002dba3094
commit
1a69d0b3c3
@ -131,7 +131,7 @@ public class ExportController extends BaseMultiActionController {
|
||||
baseUrl = "http://www.wisemapping.com/images";
|
||||
} else {
|
||||
final ServletContext servletContext = this.getServletContext();
|
||||
baseUrl = "file://" + servletContext.getRealPath("/icons/");
|
||||
baseUrl = "file://" + servletContext.getRealPath("/icons/")+"/";
|
||||
}
|
||||
properties.setBaseImagePath(baseUrl);
|
||||
}
|
||||
|
@ -286,7 +286,8 @@ public class ExporterFactory {
|
||||
|
||||
// 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></image>");
|
||||
result = result.replaceAll("<image([^>]+)>", "<image$1/>");
|
||||
result = result.replaceAll("<image([^>]+)//+>", "<image$1></image>");
|
||||
return result.toCharArray();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user