Parcourir la source

最后一个字超格问题处理

loubw il y a 4 jours
Parent
commit
e69f9c7669
2 fichiers modifiés avec 0 ajouts et 2 suppressions
  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++