Patch: US Tax Report for webkit and gtkhtml (was: For 2.4: webkit only or webkit and gtkhtml)

J. Alex Aycinena alex.aycinena at
Mon Jul 5 20:59:46 EDT 2010


On Sun, Jun 27, 2010 at 7:28 PM, J. Alex Aycinena
<alex.aycinena at> wrote:
> Phil,
> On Sun, Jun 27, 2010 at 3:33 PM, Phil Longstaff <plongstaff at> wrote:
>> The intention is not to support them simultaneously, but I hope and
>> assume we will be moving forward with webkit.  There is a
>> 'gnc-html-engine-supports-css' which is supposed to return true for
>> webkit and false for gtkhtml, so you could use it in an if-then-else
>> environment.  The purpose is to allow the scm code to decide whether css
>> features should be used or not.
>> Phil
> Ok so I'll try that and see if I can get both to work. Either way I'll
> have to submit some patches for the webkit version to work properly
> Thanks,
> Alex

I attach a patch file so that the US Tax Report works with either
gtkhtml or webkit. Three file are modified:

stylesheet-plain.scm - add capability to select alternate line shading
and to select an alternate line background color; switch defaults for
table cell padding and spacing; define three justifications for column
heading (right, center and left).

html-fonts.scm - add capability to use additions in
stylesheet-plain.scm; make default font size for links same as for

taxtxf.scm - add capability to run with either gtkhtml or webkit and,
if webkit, to utilize features of the default style sheet

I would appreciate it if you or another developer would apply these
patches for me.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: taxtxf.scm.webkitdiff
Type: application/octet-stream
Size: 41320 bytes
Desc: not available
URL: <>

More information about the gnucash-devel mailing list