mirror of
https://codeberg.org/scip/epuppy.git
synced 2025-12-17 12:31:02 +01:00
Fix more parser failures (#10)
* stabilize section parsing, now seems to read all ebooks I tested with * refactored Open() into smaller funcs * bump version
This commit is contained in:
@@ -59,8 +59,11 @@ func ViewEpub(conf *Config) (int, error) {
|
||||
}
|
||||
|
||||
if conf.Debug {
|
||||
repr.Println("book.Files()")
|
||||
repr.Println(book.Files())
|
||||
repr.Println(book.Ncx)
|
||||
repr.Println(book.Sections)
|
||||
repr.Println(book.Opf.Manifest)
|
||||
}
|
||||
|
||||
buf := strings.Builder{}
|
||||
@@ -84,7 +87,7 @@ func ViewEpub(conf *Config) (int, error) {
|
||||
return fmt.Println(buf.String())
|
||||
}
|
||||
|
||||
if conf.Debug {
|
||||
if conf.Debug || conf.XML {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user