Project

General

Profile

Defect #61 » r5258_chinese.rb.patch

Jun NAITOH, 2011-04-02 09:09

View differences:

vendor/plugins/rfpdf/lib/fpdf/chinese.rb 2011-03-31 20:35:27.000000000 +0900 → vendor/plugins/rfpdf/lib/fpdf/chinese.rb 2011-04-02 13:49:41.000000000 +0900
210 210
  			#Automatic line break
211 211
  			if(sep==-1 or i==j)
212 212
  				if(i==j)
213
  					i+=ascii ? 1 : 3
213
  					i+=ascii ? 1 : 2
214 214
					end
215 215
  				Cell(w,h,s[j,i-j],b,2,align,fill)
216 216
  			else
......
225 225
  				b=b2
226 226
  			end
227 227
  		else
228
  			i+=ascii ? 1 : 3
228
  			i+=ascii ? 1 : 2
229 229
  		end
230 230
  	end
231 231
  	#Last chunk
......
294 294
  					next
295 295
  				end
296 296
  				if(i==j)
297
  					i+=ascii ? 1 : 3
297
  					i+=ascii ? 1 : 2
298 298
					end
299 299
  				Cell(w,h,s[j,i-j],0,2,'',0,link)
300 300
  			else
......
311 311
  			end
312 312
  			nl+=1
313 313
  		else
314
  			i+=ascii ? 1 : 3
314
  			i+=ascii ? 1 : 2
315 315
			end
316 316
  	end
317 317
  	#Last chunk
(31-31/46)