Quellcode durchsuchen

最后一个字超格问题处理

loubw vor 4 Tagen
Ursprung
Commit
e69f9c7669
2 geänderte Dateien mit 0 neuen und 2 gelöschten Zeilen
  1. 0 1
      fpdf.go
  2. 0 1
      splittext.go

+ 0 - 1
fpdf.go

@@ -2775,7 +2775,6 @@ func (f *Fpdf) MultiCell(w, h float64, txtStr, borderStr, alignStr string, fill
 			}
 			//sep = -1
 			j = i
-			i++
 			l = 0
 			//ns = 0
 			nl++

+ 0 - 1
splittext.go

@@ -56,7 +56,6 @@ func (f *Fpdf) SplitText(txt string, w float64) (lines []string) {
 			lines = append(lines, string(s[j:i]))
 			//sep = -1
 			j = i
-			i++
 			l = 0
 		} else {
 			i++