Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
- Documentation overhaul: New README, new "Get started" pkgdown page, new
vignettes on `strict = FALSE`, `Adoption` renamed to `Third-party
integrations`, minor other doc improvements (#741, #643, #618, #614, #677,
#651, #667, #672, #687, #752).
#651, #667, #672, #687, #752, #754).

- `@exampleIsf` roxygen tag for conditional examples is now supported (#743).

Expand Down
12 changes: 9 additions & 3 deletions R/rules-spaces.R
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,18 @@ set_space_between_levels <- function(pd_flat) {
#' Start comments with a space
#'
#' Forces comments to start with a space, that is, after the regular expression
#' "^#+'*", at least one space must follow if the comment is *non-empty*, i.e
#' `#+['\\*]`, at least one space must follow if the comment is *non-empty*, i.e
#' there is not just spaces within the comment. Multiple spaces may be legit for
#' indention in some situations.
#' @section Exceptions:
#' Spaces won't be added to comments when they are:
#'
#' * shebangs
#' * code chunk headers
#' * xaringan markers
#'
#' @param pd A parse table.
#' @param force_one Whether or not to force one space or allow multiple spaces
#' after the regex "^#+'*".
#' @param force_one Whether or not to force one space or allow multiple spaces.
#' @importFrom purrr map_chr
#' @keywords internal
start_comments_with_space <- function(pd, force_one = FALSE) {
Expand Down
15 changes: 12 additions & 3 deletions man/start_comments_with_space.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.