Reports broken?

J. Alex Aycinena alex.aycinena at gmail.com
Sun Jul 25 17:37:14 EDT 2010


> From: Mike Evans <mikee at saxicola.idps.co.uk>
> To: gnucash-devel at gnucash.org
> Date: Sun, 25 Jul 2010 10:40:38 +0100
> Subject: Re: Reports broken?
> On Sunday July 25 2010 06:46:54 J. Alex Aycinena wrote:

<snip>

>> > In /usr/local/share/gnucash/scm/html-style-sheet.scm:
>> >  233: 26  (let (# #) (gnc:html-document-set-title! newdoc #) ...)
>> >  233: 27* [easy-renderer #<procedure dispatch #> #]
>> > In
>> > /usr/local/share/gnucash/guile-modules/gnucash/report/stylesheet-easy.sc
>> > m: 180: 28  (let* (# # # ...) (gnc:html-document-add-object! ssdoc #)
>> > ...) 317: 29* (let* ((t #)) (gnc:html-table-set-style! t "table" ...)
>> > ...) 331: 30* [add-css-information-to-doc #<procedure dispatch #> #] In
>> > /usr/local/share/gnucash/scm/html-fonts.scm:
>> >  115: 31  (let* (# # # # ...) (gnc:html-document-set-style-text! ssdoc
>> > #)) 120: 32* [#<procedure #f (section name)> "General" "Enable Alternate
>> > Line Shading"]
>> >  118: 33  [gnc:option-value #f]
>> > In /usr/local/share/gnucash/scm/options.scm:
>> >  139: 34  (let* ((getter (gnc:option-getter option))) (getter))
>> >  139: 35* [gnc:option-getter #f]
>> >  112: 36  [vector-ref #f 5]
>> > /usr/local/share/gnucash/scm/options.scm:112:3: In procedure vector-ref
>> > in expression (vector-ref option 5):
>> > /usr/local/share/gnucash/scm/options.scm:112:3: Wrong type argument in
>> > position 2: 5
>> >

<snip>

>>
>> This is due to changes in a patch I sent in. If, in the report
>> options, you specify the stylesheet as 'default', they should work for
>> now. I will have to send in patches for the other stylesheets to
>> conform to changes in 'html-fonts.scm' so that they will work also. I
>> will do this soon.
>>
> Alex
> It's broken no matter what stylesheet I use.
> But you patch was for taxtxf.scm, yes?  It seems unlikely that it would have
> affected all reports.
> Mike
>

Mike,

I've built r19378 on Fedora 13 (you mentioned F12) first with webkit
and then with gtkhtml and, in both cases, all reports (or all that
I've tried) work with the default stylesheet but fail and give me
similar log output to what you provided with any other stylsheet.  So
that has me confused.

The patch was for taxtxf.scm but I also changed html-fonts.scm and
stylesheet-plain.scm so that taxtxf.scm would format the same with
either webkit or gtkhtml.

The reference to '(section name)> "General" "Enable Alternate Line
Shading"' under html-fonts.scm in your log output is my change and
this causes a problem in options.scm when used with
stylesheet-easy.scm.

Can you show me the log output you get when it fails for you with the
default stylesheet, please (that would show stylesheet-plain.scm in
your output instead of stylesheet-easy.scm, I believe).

Thanks,

Alex


More information about the gnucash-devel mailing list