From a40d35b037e1c6e9060bb9db5e477497f1af78a9 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Mon, 23 May 2011 19:14:31 +0000 Subject: [PATCH] Bug #650757: Fix Easy & footer styles output wrong tags iso preventing HTML 4.01 Transitional validation Patch by Bert: This patch removes the wrong tags and closes the center tag in the footer and easy stylesheets. Just like Bug #650163 (and related to bug #616611) the easy & footer stylesheets: *output tags instead of *are missing a tag preventing html validation. This patch removes the intended and makes a clean out of the necessary tags. The styles are set through css anyhow. Furthmore it adds the closing tag. BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20675 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/report/stylesheets/stylesheet-easy.scm | 17 +++++++++-------- src/report/stylesheets/stylesheet-footer.scm | 17 +++++++++-------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/report/stylesheets/stylesheet-easy.scm b/src/report/stylesheets/stylesheet-easy.scm index e1cc03943c..4b624b2594 100644 --- a/src/report/stylesheets/stylesheet-easy.scm +++ b/src/report/stylesheets/stylesheet-easy.scm @@ -275,22 +275,22 @@ (gnc:html-document-set-style! ssdoc "total-number-cell" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "class" "total-number-cell")) (gnc:html-document-set-style! ssdoc "total-number-cell-neg" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "class" "total-number-cell neg")) (gnc:html-document-set-style! ssdoc "total-label-cell" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "class" "total-label-cell")) (gnc:html-document-set-style! ssdoc "centered-label-cell" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "class" "centered-label-cell")) ) (begin ;; this is for gtkhtml @@ -344,22 +344,22 @@ (gnc:html-document-set-style! ssdoc "total-number-cell" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "align" "right")) (gnc:html-document-set-style! ssdoc "total-number-cell-neg" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "align" "right")) (gnc:html-document-set-style! ssdoc "total-label-cell" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "align" "left")) (gnc:html-document-set-style! ssdoc "centered-label-cell" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "align" "center")) ) ) @@ -471,6 +471,7 @@ t 2 headcolumn (gnc:html-document-objects doc)) (gnc:html-document-add-object! ssdoc t)) + (gnc:html-document-add-object! ssdoc (gnc:make-html-text "")) ;;TODO: make this a div instead of
(deprecated) ssdoc)) (gnc:define-html-style-sheet diff --git a/src/report/stylesheets/stylesheet-footer.scm b/src/report/stylesheets/stylesheet-footer.scm index 9b2912f928..e63d00958e 100644 --- a/src/report/stylesheets/stylesheet-footer.scm +++ b/src/report/stylesheets/stylesheet-footer.scm @@ -289,22 +289,22 @@ (gnc:html-document-set-style! ssdoc "total-number-cell" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "class" "total-number-cell")) (gnc:html-document-set-style! ssdoc "total-number-cell-neg" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "class" "total-number-cell neg")) (gnc:html-document-set-style! ssdoc "total-label-cell" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "class" "total-label-cell")) (gnc:html-document-set-style! ssdoc "centered-label-cell" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "class" "centered-label-cell")) ) (begin ;; this is for gtkhtml @@ -358,22 +358,22 @@ (gnc:html-document-set-style! ssdoc "total-number-cell" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "align" "right")) (gnc:html-document-set-style! ssdoc "total-number-cell-neg" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "align" "right")) (gnc:html-document-set-style! ssdoc "total-label-cell" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "align" "left")) (gnc:html-document-set-style! ssdoc "centered-label-cell" - 'tag '("td" "b") + 'tag '("td") 'attribute (list "align" "center")) ) ) @@ -489,6 +489,7 @@ (gnc:html-table-set-cell! t 3 headcolumn (gnc:make-html-text footer-text))) + (gnc:html-document-add-object! ssdoc (gnc:make-html-text "
")) ;;TODO: make this a div instead of
(deprecated) ssdoc)) (gnc:define-html-style-sheet