GNOME Bugzilla – Bug 584564
Allow report renderers to return plain HTML
Last modified: 2018-06-29 22:22:43 UTC
Currently, report renderers (as defined by gnc:define-report) return an html-document object to the report system. That object then may have a GnuCash 'stylesheet' applied before it is converted into HTML. New eguile-based reports create a simple HTML string, so no further processing is required. This fix changes report.scm so that it recognises if the report is already an HTML string and does not need further processing. Other information: This change does not affect existing reports, which can continue to return html-document objects as they have always done. New reports can take advantage of the change by simply returning an HTML string instead of an html-document. This is particularly relevant as part of the move to using Webkit instead of GTKHTML, as it allows the report to specify the <head> section and <style> elements.
Created attachment 135773 [details] [review] Patch to fix bug
Comment on attachment 135773 [details] [review] Patch to fix bug Committed as r18102
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=584564. Please update any external references or bookmarks.