tcpdf_Automatic_line_break_r5661.patch

Jun NAITOH, 2011-05-06 10:42

Download (636 Bytes)

View differences:

vendor/plugins/rfpdf/lib/tcpdf.rb (working copy)
1827 1827
				ns += 1;
1828 1828
			end
1829 1829

  
1830
			l = GetStringWidth(s[from_j, to_index-from_j]);
1830
			l = GetStringWidth(s[from_j, to_index - from_j + 1]);
1831 1831

  
1832 1832
			if (l > wmax)
1833 1833
				#Automatic line break
......
1946 1946
			if (c == " "[0])
1947 1947
				sep= i;
1948 1948
			end
1949
			l = GetStringWidth(s[j, i-j]);
1949
			l = GetStringWidth(s[j, i-j+1]);
1950 1950
			if (l > wmax)
1951 1951
				#Automatic line break (word wrapping)
1952 1952
				if (sep == -1)