This commit is contained in:
Horis committed 2023-12-08 16:48:28 +08:00
1 parent 8967da6251
commit 1590aef627
2 files changed
+26 -29

No files matched your search

@@ -101,6 +101,13 @@ 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;
}