Revision: a86c0dd0d27c Branch: default Author: Sahel "sahel.mastoureshgh@xxxxxxxxx" Date: Tue Jul 15 14:40:00 2014 UTC Log: Save edited Epub file in mac http://code.google.com/p/brailleblaster/source/detail?r=a86c0dd0d27c Modified: /src/main/org/brailleblaster/archiver/EPub3Archiver.java =======================================--- /src/main/org/brailleblaster/archiver/EPub3Archiver.java Tue Apr 29 19:44:40 2014 UTC +++ /src/main/org/brailleblaster/archiver/EPub3Archiver.java Tue Jul 15 14:40:00 2014 UTC
@@ -378,7 +378,14 @@ for(int curPath = 0; curPath < epubFileList.size(); curPath++) { // Parse this epub document.- nu.xom.Document curDoc = parser.build( "File:" + BBIni.getFileSep() + epubFileList.get(curPath) );
+ + nu.xom.Document curDoc; + //check for if it is mac or non mac + if(BBIni.getPlatformName().equals("cocoa")) + curDoc = parser.build( epubFileList.get(curPath) ); + else+ curDoc = parser.build( "File:" + BBIni.getFileSep()+epubFileList.get(curPath) );
+ // Get epub document's body.nu.xom.Nodes bodyNodes = curDoc.getRootElement().query("//dtb:body[1]", context);