Skip to content

Commit

Permalink
bugfix for parse
Browse files Browse the repository at this point in the history
  • Loading branch information
yang.yang committed May 10, 2018
1 parent a26d320 commit e453d64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdf/internal/cmap/cmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ func (cmap *CMap) CharcodeBytesToUnicode(src []byte) string {
if has {
buf.WriteString(tgt)
break
} else if j == maxLen-1 || i+j == len(src)-1 {
break
}
}
i += j + 1
Expand Down

0 comments on commit e453d64

Please sign in to comment.