|
@@ -1966,6 +1966,17 @@ func AnnotationHtml(bodyText string) (annotation string) {
|
|
|
mapSort = append(mapSort, textLen)
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
+ section := doc.Find("section")
|
|
|
+ section.Each(func(tk int, section *goquery.Selection) {
|
|
|
+ sectionText := section.Text()
|
|
|
+ sectionText = strings.Replace(sectionText, " ", "", -1)
|
|
|
+ if sectionText != "" {
|
|
|
+ textLen := strings.Index(docText, sectionText)
|
|
|
+ mapDoc[(strings.Index(docText, sectionText))] = sectionText
|
|
|
+ mapSort = append(mapSort, textLen)
|
|
|
+ }
|
|
|
+ })
|
|
|
if len(mapSort) == 0 {
|
|
|
return
|
|
|
} else {
|