优化
This commit is contained in:
1 parent
674767e31c
commit
6f7e9e8de1
3 files changed
+7
-23
No files matched your search
@@ -101,13 +101,6 @@ public class LazyResource extends Resource {
|
||||
throw new IOException(
|
||||
"Could not load the contents of resource: " + this.getHref());
|
||||
} else {
|
||||
/*掌上书苑有很多自制书OPF的nameSpace格式不标准,强制修复成正确的格式*/
|
||||
if (getHref().endsWith("opf")) {
|
||||
String string = new String(readData)
|
||||
.replace(" smlns=\"", " xmlns=\"")
|
||||
.replace(" mlns=\"", " xmlns=\"");
|
||||
readData = string.getBytes();
|
||||
}
|
||||
this.data = readData;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user