-
Notifications
You must be signed in to change notification settings - Fork 301
Closed
Description
In renv, I had a NEWS file with the structure:
# renv (development version)
* Fixed an issue where downloads could fail with curl >= 8.7.1. (#1869)
< ... >
Note the leading empty line. When I then ran usethis::use_version("patch"), the NEWS file was modified as:
diff --git a/NEWS.md b/NEWS.md
index bc58b2c79..d2b02c0da 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,3 +1,5 @@
+# renv 1.0.6
+
# renv (development version)
Note that the old development version NEWS header was unexpectedly retained. Could the check in:
Lines 49 to 55 in 9e64daf
| development_title <- glue("# {project_name()} (development version)") | |
| if (development_title == news[[1]]) { | |
| news[[1]] <- title | |
| ui_bullets(c("v" = "Replacing development heading in {.path NEWS.md}.")) | |
| return(write_utf8(news_path, news)) | |
| } |
skip leading whitespace / empty lines?
Metadata
Metadata
Assignees
Labels
No labels