Skip to content

Commit 1070822

Browse files
committed
Render inline images and tables. Provide warning message about floats. Handle inherited styles.
1 parent 40e13a1 commit 1070822

File tree

3 files changed

+338
-82
lines changed

3 files changed

+338
-82
lines changed

index/index.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"database/sql"
77
"encoding/binary"
88
"errors"
9-
"fmt"
109
"io"
1110
"io/ioutil"
1211
"log"
@@ -84,7 +83,6 @@ func (ix *Index) loadZip(zf *zip.ReadCloser) error {
8483
ix.Records = make(map[uint64]interface{})
8584
for _, f := range zf.File {
8685
if strings.HasSuffix(f.Name, ".iwa") {
87-
fmt.Println(f.Name)
8886
rc, err := f.Open()
8987
if err != nil {
9088
return err

index/pages.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ func decodePages(typ uint32, payload []byte) (interface{}, error) {
253253
return value, err
254254

255255
default:
256-
return nil, errors.New(fmt.Sprintf("Unknown type %d", typ))
256+
// This is not really a big deal as it's a chunk we're not using.
257+
return nil, errors.New(fmt.Sprintf("Unknown message type %d", typ))
257258
}
258259
}

0 commit comments

Comments
 (0)