[PATCH] Re: GNUCash BZ 327630

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Re: GNUCash BZ 327630

Dave Herman
I believe the problem described in Bugzilla 327630 is caused by a
missing "function" (gnc:html-document-set-style!) in both the "fancy"
and "easy" stylesheets.  Cutting and pasting the function from "plan
stylesheet" seems to resolve the issue.

The following patches appear, to my testing, to resolve the problem.

Note - I'm cross-posting the the BZ entry

Index: src/report/stylesheets/stylesheet-fancy.scm
===================================================================
--- src/report/stylesheets/stylesheet-fancy.scm (revision 13064)
+++ src/report/stylesheets/stylesheet-fancy.scm (working copy)
@@ -194,7 +194,17 @@
      'attribute (list "text" textcolor)
      'attribute (list "link" linkcolor))

+;;;;
+;;;;
+;;;;
     (gnc:html-document-set-style!
+     ssdoc "number-header"
+     'tag "th"
+     'attribute (list "align" "right"))
+;;;;
+;;;;
+;;;;
+    (gnc:html-document-set-style!
      ssdoc "number-cell"
      'tag "td"
      'attribute (list "align" "right")
Index: src/report/stylesheets/stylesheet-easy.scm
===================================================================
--- src/report/stylesheets/stylesheet-easy.scm  (revision 13064)
+++ src/report/stylesheets/stylesheet-easy.scm  (working copy)
@@ -220,6 +220,16 @@
      'attribute (list "bgcolor" bgcolor)
      'attribute (list "text" textcolor)
      'attribute (list "link" linkcolor))
+;;;;
+;;;;
+;;;;
+    (gnc:html-document-set-style!
+     ssdoc "number-header"
+     'tag "th"
+     'attribute (list "align" "right"))
+;;;;
+;;;;
+;;;;

     (gnc:html-document-set-style!
      ssdoc "number-cell"

===========================================================================

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Re: GNUCash BZ 327630

David Hampton-2
On Tue, 2006-01-31 at 16:51 -0700, Dave Herman wrote:
> I believe the problem described in Bugzilla 327630 is caused by a
> missing "function" (gnc:html-document-set-style!) in both the "fancy"
> and "easy" stylesheets.  Cutting and pasting the function from "plan
> stylesheet" seems to resolve the issue.
>
> The following patches appear, to my testing, to resolve the problem.

Works for me too.  Thanks for the patch.

David


_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Re: GNUCash BZ 327630

Dave Herman
In additional testing I am getting Gnucash crashes when I attempt Edit > Style sheets
All seems OK until I Apply.

Can anyone else edit Style sheets in current SVN?

Dave

David Hampton wrote:
On Tue, 2006-01-31 at 16:51 -0700, Dave Herman wrote:
  
I believe the problem described in Bugzilla 327630 is caused by a
missing "function" (gnc:html-document-set-style!) in both the "fancy"
and "easy" stylesheets.  Cutting and pasting the function from "plan
stylesheet" seems to resolve the issue.

The following patches appear, to my testing, to resolve the problem.
    

Works for me too.  Thanks for the patch.

David




  


_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Re: GNUCash BZ 327630

David Hampton-2
On Sat, 2006-02-04 at 15:57 -0700, [hidden email] wrote:
> In additional testing I am getting Gnucash crashes when I attempt Edit
> > Style sheets
> All seems OK until I Apply.
>
> Can anyone else edit Style sheets in current SVN?

No problem here.  r13104.

David


_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel