|
UTF8 text splitted correctly by SplitText function in WriteAligned
method:
https://github.com/jung-kurt/gofpdf/blob/3aaf0b1a66c0ab02d925917376898a5856061d59/fpdf.go#L2811
Then, lines of text are written via Write function, and if text is
already wrapped by given width it will be printed using 'last chunk' case:
https://github.com/jung-kurt/gofpdf/blob/3aaf0b1a66c0ab02d925917376898a5856061d59/fpdf.go#L2747,L2754
But in this case, gofpdf does not move cursor to the next cell, which
cause all text to be printed on the same line without actual wrapping.
This commit makes workaround for it by explicitly setting right margin
to force automatic line break case:
https://github.com/jung-kurt/gofpdf/blob/3aaf0b1a66c0ab02d925917376898a5856061d59/fpdf.go#L2705
|