@@ -2817,9 +2817,9 @@ func (f *Fpdf) write(h float64, txtStr string, link int, linkStr string) {
2817
2817
if c == '\n' {
2818
2818
// Explicit line break
2819
2819
if f .isCurrentUTF8 {
2820
- f .CellFormat (w , h , string ([]rune (s )[j :i ]), "" , 2 , "" , false , link , linkStr )
2820
+ f .CellFormat (w , h , string ([]rune (s )[j :i ]), "" , 2 , "" , true , link , linkStr )
2821
2821
} else {
2822
- f .CellFormat (w , h , s [j :i ], "" , 2 , "" , false , link , linkStr )
2822
+ f .CellFormat (w , h , s [j :i ], "" , 2 , "" , true , link , linkStr )
2823
2823
}
2824
2824
i ++
2825
2825
sep = - 1
@@ -2854,15 +2854,15 @@ func (f *Fpdf) write(h float64, txtStr string, link int, linkStr string) {
2854
2854
i ++
2855
2855
}
2856
2856
if f .isCurrentUTF8 {
2857
- f .CellFormat (w , h , string ([]rune (s )[j :i ]), "" , 2 , "" , false , link , linkStr )
2857
+ f .CellFormat (w , h , string ([]rune (s )[j :i ]), "" , 2 , "" , true , link , linkStr )
2858
2858
} else {
2859
- f .CellFormat (w , h , s [j :i ], "" , 2 , "" , false , link , linkStr )
2859
+ f .CellFormat (w , h , s [j :i ], "" , 2 , "" , true , link , linkStr )
2860
2860
}
2861
2861
} else {
2862
2862
if f .isCurrentUTF8 {
2863
- f .CellFormat (w , h , string ([]rune (s )[j :sep ]), "" , 2 , "" , false , link , linkStr )
2863
+ f .CellFormat (w , h , string ([]rune (s )[j :sep ]), "" , 2 , "" , true , link , linkStr )
2864
2864
} else {
2865
- f .CellFormat (w , h , s [j :sep ], "" , 2 , "" , false , link , linkStr )
2865
+ f .CellFormat (w , h , s [j :sep ], "" , 2 , "" , true , link , linkStr )
2866
2866
}
2867
2867
i = sep + 1
2868
2868
}
@@ -2882,9 +2882,9 @@ func (f *Fpdf) write(h float64, txtStr string, link int, linkStr string) {
2882
2882
// Last chunk
2883
2883
if i != j {
2884
2884
if f .isCurrentUTF8 {
2885
- f .CellFormat (l / 1000 * f .fontSize , h , string ([]rune (s )[j :]), "" , 0 , "" , false , link , linkStr )
2885
+ f .CellFormat (l / 1000 * f .fontSize , h , string ([]rune (s )[j :]), "" , 0 , "" , true , link , linkStr )
2886
2886
} else {
2887
- f .CellFormat (l / 1000 * f .fontSize , h , s [j :], "" , 0 , "" , false , link , linkStr )
2887
+ f .CellFormat (l / 1000 * f .fontSize , h , s [j :], "" , 0 , "" , true , link , linkStr )
2888
2888
}
2889
2889
}
2890
2890
}
0 commit comments