Skip to content

Commit

Permalink
fix rstudio#161, remove margins when there's no details
Browse files Browse the repository at this point in the history
  • Loading branch information
RLesur committed Jan 24, 2020
1 parent ec13029 commit fc25f39
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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")),
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions inst/resources/css/resume.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fc25f39

Please sign in to comment.