Skip to content

Commit

Permalink
[reports] use h3 instead of h2 for report-title
Browse files Browse the repository at this point in the history
"Title" style applies to h3. Ensure that report titles are h3 to be
styled as requested by stylesheets.
  • Loading branch information
christopherlam committed Sep 26, 2020
1 parent 0ef70ab commit 05bf2d7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
24 changes: 9 additions & 15 deletions gnucash/report/html-utilities.scm
Expand Up @@ -228,13 +228,10 @@


(define (gnc:html-make-generic-simple-warning report-title-string message)
(let ((p (gnc:make-html-text)))
(gnc:html-text-append!
p
(gnc:html-markup-h2 (string-append report-title-string ":"))
(gnc:html-markup-h2 "")
(gnc:html-markup-p message))
p))
(gnc:make-html-text
(gnc:html-markup-h3 (string-append report-title-string ":"))
(gnc:html-markup-h3 "")
(gnc:html-markup-p message)))


(define (gnc:html-make-options-link report-id)
Expand Down Expand Up @@ -301,14 +298,11 @@
(define (gnc:html-make-generic-warning
report-title-string report-id
warning-title-string warning-string)
(let ((p (gnc:make-html-text)))
(gnc:html-text-append!
p
(gnc:html-markup-h2 (string-append (G_ report-title-string) ":"))
(gnc:html-markup-h2 warning-title-string)
(gnc:html-markup-p warning-string)
(gnc:html-make-options-link report-id))
p))
(gnc:make-html-text
(gnc:html-markup-h3 (string-append (G_ report-title-string) ":"))
(gnc:html-markup-h3 warning-title-string)
(gnc:html-markup-p warning-string)
(gnc:html-make-options-link report-id)))

(define (gnc:html-make-generic-options-warning
report-title-string report-id)
Expand Down
2 changes: 1 addition & 1 deletion gnucash/report/reports/example/welcome-to-gnucash.scm
Expand Up @@ -37,7 +37,7 @@
(gnc:html-document-add-object!
doc
(gnc:make-html-text
(gnc:html-markup-h2
(gnc:html-markup-h3
(format #f (G_ "Welcome to GnuCash ~a !")
gnc:version))
(gnc:html-markup-p
Expand Down
2 changes: 1 addition & 1 deletion gnucash/report/reports/standard/new-owner-report.scm
Expand Up @@ -1079,7 +1079,7 @@ invoices and amounts.")))))
(gnc:html-document-add-object!
document
(gnc:make-html-text
(gnc:html-markup-h2 (G_ "No transactions found."))
(gnc:html-markup-h3 (G_ "No transactions found."))
(gnc:html-markup-p (G_ "No matching transactions found"))
(gnc:html-make-options-link (gnc:report-id report-obj)))))

Expand Down
2 changes: 1 addition & 1 deletion gnucash/report/reports/standard/price-scatter.scm
Expand Up @@ -192,7 +192,7 @@
(gnc:html-document-add-object!
document
(gnc:make-html-text
(gnc:html-markup-h2 title)
(gnc:html-markup-h3 title)
(gnc:html-markup-p text))))

(gnc:html-chart-set-type! chart 'line)
Expand Down

0 comments on commit 05bf2d7

Please sign in to comment.