mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
Temporal hack for broken maps in Firefox. \r issue.
This commit is contained in:
parent
8356906791
commit
3578d6e624
@ -179,7 +179,10 @@ public class MindmapController extends BaseController {
|
|||||||
// I should not return byte, but there is some encoding issue here. Further research needed.
|
// I should not return byte, but there is some encoding issue here. Further research needed.
|
||||||
response.setCharacterEncoding("UTF-8");
|
response.setCharacterEncoding("UTF-8");
|
||||||
final Mindmap mindmap = mindmapService.findMindmapById(id);
|
final Mindmap mindmap = mindmapService.findMindmapById(id);
|
||||||
return mindmap.getXmlStr().getBytes("UTF-8");
|
|
||||||
|
String xmlStr = mindmap.getXmlStr();
|
||||||
|
xmlStr = xmlStr.replace('\r',' '); // This is a temporal hack. Remove in 2014 ... :)
|
||||||
|
return xmlStr.getBytes("UTF-8");
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(method = RequestMethod.GET, value = { "/maps/{id}/{hid}/document/xml"},consumes = {"text/plain"}, produces = {"application/xml"})
|
@RequestMapping(method = RequestMethod.GET, value = { "/maps/{id}/{hid}/document/xml"},consumes = {"text/plain"}, produces = {"application/xml"})
|
||||||
|
Loading…
Reference in New Issue
Block a user