summaryrefslogtreecommitdiff
path: root/splittext.go
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2019-08-21 07:39:11 -0400
committerKurt <kurt.w.jung@gmail.com>2019-08-21 07:39:11 -0400
commit9f0804cef4bf975423bbc86ccb9215915ae80478 (patch)
tree7e545a9515cad123ccf1e59e81784a0dc58cde2f /splittext.go
parentbd30e05dff3288bc54bb696a45c4ec45ceb1156d (diff)
parent106ebb343df00b76335e7932cb74baf76be0b09e (diff)
Merge branch 'hyzgh-master'
Diffstat (limited to 'splittext.go')
-rw-r--r--splittext.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/splittext.go b/splittext.go
index 3902199..525f93b 100644
--- a/splittext.go
+++ b/splittext.go
@@ -26,8 +26,7 @@ func (f *Fpdf) SplitText(txt string, w float64) (lines []string) {
for i < nb {
c := s[i]
l += cw[c]
- if unicode.IsSpace(c) {
- // if c == ' ' || c == '\t' || c == '\n' {
+ if unicode.IsSpace(c) || isChinese(c) {
sep = i
}
if c == '\n' || l > wmax {