From fc25f39ce8c09c614e680e2130bcfbf95a3202be Mon Sep 17 00:00:00 2001 From: Romain LESUR Date: Fri, 24 Jan 2020 18:26:08 +0100 Subject: [PATCH] fix #161, remove margins when there's no details --- DESCRIPTION | 2 +- NEWS.md | 2 ++ inst/resources/css/resume.css | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 5307f6ff..066dd2cd 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: pagedown Type: Package Title: Paginate the HTML Output of R Markdown with CSS for Print -Version: 0.7.1 +Version: 0.7.2 Authors@R: c( person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")), person("Romain", "Lesur", role = c("aut", "cph"), comment = c(ORCID = "0000-0002-0721-5595")), diff --git a/NEWS.md b/NEWS.md index 571c1e02..fd718640 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,8 @@ - In `chrome_print()`, fixed some connection problems to headless Chrome: in some situations, the R session tries to connect to headless Chrome before a target is created. Now, `chrome_print()` controls the target creation by connecting to the `Browser` endpoint (thanks, @gershomtripp, #158). +- In `html_resume()` template, vertical space is removed when details are omitted (thanks, @mrajeev08, #161). + # CHANGES IN pagedown VERSION 0.7 ## NEW FEATURES diff --git a/inst/resources/css/resume.css b/inst/resources/css/resume.css index 0eab093f..8ba81d39 100644 --- a/inst/resources/css/resume.css +++ b/inst/resources/css/resume.css @@ -280,6 +280,10 @@ h1, h2{ margin: 0.18in 0 0.1in 0; } +.main-block:not(.concise) .details div:empty { + margin: 0; +} + .main-block:not(.concise) .blocks:last-child .details div{ margin-bottom: 0; }