OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
479d938
)
PDF: fix automatic line break problem with TCPDF (#8310).
author
Toshi MARUYAMA
<marutosijp2@yahoo.co.jp>
Fri, 6 May 2011 10:40:40 +0000
(10:40 +0000)
committer
Toshi MARUYAMA
<marutosijp2@yahoo.co.jp>
Fri, 6 May 2011 10:40:40 +0000
(10:40 +0000)
Contributed by Jun NAITOH.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5664
e93f8b46
-1217-0410-a6f0-
8f06a7374b81
vendor/plugins/rfpdf/lib/tcpdf.rb
patch
|
blob
|
history
diff --git
a/vendor/plugins/rfpdf/lib/tcpdf.rb
b/vendor/plugins/rfpdf/lib/tcpdf.rb
index
1e44430
..
542d2fe
100755
(executable)
--- a/
vendor/plugins/rfpdf/lib/tcpdf.rb
+++ b/
vendor/plugins/rfpdf/lib/tcpdf.rb
@@
-1827,7
+1827,7
@@
class TCPDF
ns += 1;
end
- l = GetStringWidth(s[from_j, to_index
-from_j
]);
+ l = GetStringWidth(s[from_j, to_index
- from_j + 1
]);
if (l > wmax)
#Automatic line break
@@
-1946,7
+1946,7
@@
class TCPDF
if (c == " "[0])
sep= i;
end
- l = GetStringWidth(s[j, i
-j
]);
+ l = GetStringWidth(s[j, i
- j + 1
]);
if (l > wmax)
#Automatic line break (word wrapping)
if (sep == -1)