Skip to content

Commit a7fff7a

Browse files
Merge pull request #311 from lorenzwalthert/EOF-line-break
- Styling of active file via Addin should ensure EOF line break (#311).
2 parents f83f119 + 790c443 commit a7fff7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/addins.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ style_active_file <- function() {
3030
}
3131
rstudioapi::modifyRange(
3232
c(1, 1, length(context$contents) + 1, 1),
33-
paste0(out, collapse = "\n"), id = context$id
33+
paste0(append(out, ""), collapse = "\n"), id = context$id
3434
)
3535
if (Sys.getenv("save_after_styling") == TRUE && context$path != "") {
3636
rstudioapi::documentSave(context$id)

0 commit comments

Comments
 (0)