Temporal hack for broken maps in Firefox. \r issue.

This commit is contained in:
Paulo Gustavo Veiga 2013-03-14 21:38:38 -03:00
parent 8356906791
commit 3578d6e624

View File

@ -179,7 +179,10 @@ public class MindmapController extends BaseController {
// I should not return byte, but there is some encoding issue here. Further research needed.
response.setCharacterEncoding("UTF-8");
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"})