GNOME Bugzilla – Bug 99273
GEdit has GTK_WRAP_CHAR as default print mode [ugh]
Last modified: 2004-12-22 21:47:04 UTC
I think default print mode should be GTK_WRAP_WORD [which makes the UI pretty poopy, since it only has a check box for at wrap at character boundary].
Would be nice.
See also bug 82710 for implementing preferences. These bugs are not mutually exclusive.
Note that since libgnomeprint/ui does not use Pango for text layout, the layout is made by hand This is the reason gedit uses a GTK_WRAP_CHAR like wrapping mode, i.e. when I implemented it, I was too lazy to implement a more advanced wrapping mode. BTW, I don't want to modify the print code until libgnomeprint/ui will be stabilized. But, patches are wellcome :-)
Sorry Paolo, did not see this one. I will mark bug #101015 as the duplicate of this. Kindly review the patch I have put up there.
*** Bug 101015 has been marked as a duplicate of this bug. ***
Kaushal: you patch seems good (but I have still not tried it). I'd like to have both wrap mode implemented. It seems you break lines at spaces. Probably you should also break at TABS. Put a ChangeLog entry in the patch. Thanks.
I am putting up the patch for the word-wrap (pl. see attachment). This patch should take care of word-wrapping. The existing features of charater wrap and wrap-none are kept un-altered. For this patch to show any effect, the print preferences UI must first be enhanced to cater to word-wrap, i.e. a check box for Word wrap.Bug #82710 should also get resolved through this.
Created attachment 13017 [details] [review] Patch for word-wrap and the Changelog entry
Fixed in CVS HEAD