更改成html5的doctype,节省空间。

pull/1079/head
ag2s20150909 3 years ago
parent e73bcc65b9
commit b0317b5609
  1. 3
      app/src/main/assets/epub/chapter.html
  2. 3
      app/src/main/assets/epub/cover.html
  3. 3
      app/src/main/assets/epub/intro.html
  4. 2
      app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" <!DOCTYPE html>
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>Chapter</title> <title>Chapter</title>

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" <!DOCTYPE html>
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>Cover</title> <title>Cover</title>

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" <!DOCTYPE html>
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN">
<head> <head>
<title>Intro</title> <title>Intro</title>

@ -233,7 +233,7 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
} }
private fun setAssets(doc: DocumentFile, book: Book, epubBook: EpubBook): String { private fun setAssets(doc: DocumentFile, book: Book, epubBook: EpubBook): String {
if(!AppConfig.isGooglePlay) return setAssets(book, epubBook) if(!(AppConfig.isGooglePlay|| appCtx.packageName.contains("debug",true))) return setAssets(book, epubBook)
var contentModel = "" var contentModel = ""
DocumentUtils.getDirDocument(doc, "Asset").let { customPath -> DocumentUtils.getDirDocument(doc, "Asset").let { customPath ->

Loading…
Cancel
Save