mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
ReaderDict: fix use of dicts with ifo with DOS line endings (#9536)
Fixed in upstream sdcv, but we need to also do it in our parsing of .ifo and picking out dict name. Also includes minor bump of base/sdcv.
This commit is contained in:
2
base
2
base
Submodule base updated: 66f8b4ae3e...bcf5ab2fff
@@ -134,7 +134,7 @@ function ReaderDictionary:init()
|
||||
if f then
|
||||
local content = f:read("*all")
|
||||
f:close()
|
||||
local dictname = content:match("\nbookname=(.-)\n")
|
||||
local dictname = content:match("\nbookname=(.-)\r?\n")
|
||||
local is_html = content:find("sametypesequence=h", 1, true) ~= nil
|
||||
-- sdcv won't use dict that don't have a bookname=
|
||||
if dictname then
|
||||
|
||||
Reference in New Issue
Block a user