From 14b8aa8c93766f98a6e0bc9ff04f14962a888f4f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 4 Mar 2017 23:16:42 +0100 Subject: Regularized CSS in html/epub/html slide templates. All templates now include `code{white-space: pre-wrap}` and CSS for `q` if `--html-q-tags` is used. Previously some templates had `pre` and others `pre-wrap`; the `q` styles were only sometimes included. See #3485. --- data/templates/default.dzslides | 7 +++++-- data/templates/default.epub2 | 8 +++++++- data/templates/default.epub3 | 9 +++++---- data/templates/default.html4 | 7 +++++-- data/templates/default.html5 | 7 +++++-- data/templates/default.revealjs | 7 +++++-- data/templates/default.s5 | 11 +++++++---- data/templates/default.slideous | 7 +++++-- data/templates/default.slidy | 7 +++++-- test/lhs-test.html | 5 ++++- test/lhs-test.html+lhs | 5 ++++- test/s5-basic.html | 5 ++++- test/s5-fancy.html | 5 ++++- test/s5-inserts.html | 5 ++++- test/writer.html4 | 5 ++++- test/writer.html5 | 5 ++++- 16 files changed, 77 insertions(+), 28 deletions(-) diff --git a/data/templates/default.dzslides b/data/templates/default.dzslides index cad4dba4b..ef4f03c8d 100644 --- a/data/templates/default.dzslides +++ b/data/templates/default.dzslides @@ -12,10 +12,13 @@ $if(keywords)$ $endif$ $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ - + + q { quotes: "“" "”" "‘" "’"; } $endif$ + $if(highlighting-css)$ + $if(highlighting-css)$ -$if(quotes)$ + code{white-space: pre-wrap;} + .smallcaps{font-variant: small-caps;} +$if(quotes)$ + q { quotes: "“" "”" "‘" "’"; } $endif$ + $if(highlighting-css)$ + + q { quotes: "“" "”" "‘" "’"; } $endif$ + $if(highlighting-css)$ + + q { quotes: "“" "”" "‘" "’"; } $endif$ + $if(highlighting-css)$ + + q { quotes: "“" "”" "‘" "’"; } $endif$ + $if(highlighting-css)$ + -$if(quotes)$ - -$endif$ $if(highlighting-css)$ + + q { quotes: "“" "”" "‘" "’"; } $endif$ + $if(highlighting-css)$ + + q { quotes: "“" "”" "‘" "’"; } $endif$ + $if(highlighting-css)$ + + + diff --git a/test/s5-fancy.html b/test/s5-fancy.html index 01c5b43cc..f80d321fb 100644 --- a/test/s5-fancy.html +++ b/test/s5-fancy.html @@ -10,7 +10,10 @@ My S5 Document - + diff --git a/test/s5-inserts.html b/test/s5-inserts.html index 70d3418f3..b84d2360e 100644 --- a/test/s5-inserts.html +++ b/test/s5-inserts.html @@ -8,7 +8,10 @@ My S5 Document - + STUFF INSERTED diff --git a/test/writer.html4 b/test/writer.html4 index d26d9e67d..81cacde6a 100644 --- a/test/writer.html4 +++ b/test/writer.html4 @@ -8,7 +8,10 @@ Pandoc Test Suite - +