mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-09-11 23:00:06 +02: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";
|
baseUrl = "http://www.wisemapping.com/images";
|
||||||
} else {
|
} else {
|
||||||
final ServletContext servletContext = this.getServletContext();
|
final ServletContext servletContext = this.getServletContext();
|
||||||
baseUrl = "file://" + servletContext.getRealPath("/icons/");
|
baseUrl = "file://" + servletContext.getRealPath("/icons/")+"/";
|
||||||
}
|
}
|
||||||
properties.setBaseImagePath(baseUrl);
|
properties.setBaseImagePath(baseUrl);
|
||||||
}
|
}
|
||||||
|
@ -286,7 +286,8 @@ public class ExporterFactory {
|
|||||||
|
|
||||||
// Add namespace...
|
// Add namespace...
|
||||||
result = result.replaceFirst("<svg ", "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" ");
|
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();
|
return result.toCharArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user