maxiaoshan 6 年之前
父节点
当前提交
9616a3cf25
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/jy/pretreated/colonkv.go

+ 2 - 2
src/jy/pretreated/colonkv.go

@@ -217,7 +217,7 @@ func formatText(content, key string) string {
 				break
 			}
 		}
-		if key == "kv" && utf8.RuneCountInString(v.Text)>=1{
+		if key == "kv" && utf8.RuneCountInString(v.Text) >= 1 {
 			//log.Println("清理前:",v.Text, []rune(v.Text)[len([]rune(v.Text))-1])
 			v.Text = strings.TrimRightFunc(v.Text, func(r rune) bool {
 				return r == 19968 || r == 20108 || r == 19977 ||
@@ -492,7 +492,7 @@ func FormatContactKv(kvs *[]*Kv, title string, buyers []string, contactFormat *C
 				if startIndex == 0 {
 					indexMap = map[int]string{}
 				}
-				//prevKey = ""
+				prevKey = ""
 				startIndex++
 				indexMap[startIndex] = ct_k
 				isContinue = true