|
@@ -452,8 +452,10 @@ func AnnotationHtml(bodyText string) (annotation string) {
|
|
|
pdText = strings.Replace(pdText, " ", "", -1)
|
|
|
if pdText != "" {
|
|
|
textLen := strings.Index(docText, pdText)
|
|
|
- mapDoc[(strings.Index(docText, pdText))] = pdText
|
|
|
- mapSort = append(mapSort, textLen)
|
|
|
+ if textLen >= 0 {
|
|
|
+ mapDoc[(strings.Index(docText, pdText))] = pdText
|
|
|
+ mapSort = append(mapSort, textLen)
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
li := doc.Find("li")
|