GNOME Bugzilla – Bug 355396
Report widget does not break very long lines correctly
Last modified: 2018-06-29 21:12:34 UTC
This is Debian bug # 382668 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=382668 After much discussion on that bug report, the report generation code is not breaking very, very long lines in the way that should be expected. When such reports are exported to HTML and viewed in a HTML browser, the lines break as expected. When printed direct from gnucash, the lines are not broken and the report tries to cause data to be printed beyond the right margin. The workaround of exporting to HTML, viewing in a browser and printing from there does work but this just highlights the bug within gnucash which should, in theory, do a very similar job internally.
Thanks for the example file in the Debian bugreport. However, the report generation code in gnucash also just produces HTML. It is up to the HTML viewer widget to produce correct line-wraps, both on-screen and for printing. Both is handled by gtkhtml in gnucash's case. So I'm afraid we have to blame gtkhtml's printing code and we cannot do anything about this on the gnucash side... sorry. Maybe one could use the example data file, export as HTML (and attach it here), and make gtkhtml display that external HTML file (gtkhtml should probably have a webbrowser example in their tarball), and if this does exhibit the very same word-wrapping problem, then this should be reported to the gtkhtml guys (i.e. change the product to GtkHTML and adjust title)?
Reassigning to gtkhtml3.8 in Debian. Closing gnucash version.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=355396. Please update any external references or bookmarks.