Skip to content

Commit c7c978e

Browse files
improve news formatting
1 parent 6879d20 commit c7c978e

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

NEWS.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Alignment detection
44

5-
* code with left alignment after `=` in function calls is now recognized as
5+
* Code with left alignment after `=` in function calls is now recognized as
66
aligned and won't be reformatted (#774, #777).
77
```
88
# already detected previously
@@ -18,7 +18,7 @@
1818
)
1919
```
2020

21-
* similarly, left aligned after comma is now detected (#785, #786).
21+
* Similarly, left aligned after comma is now detected (#785, #786).
2222
```
2323
# previously detected
2424
call(
@@ -51,45 +51,45 @@
5151

5252
* The base R pipe as introduced in R 4.1.0 is now styled the same way the
5353
magrittr pipe is (#803).
54+
* code chunks with explicit `tidy = FALSE` in an Rmd or Rnw code header are not
55+
styled anymore. This can be handy when the code can't be parsed, e.g.
56+
within a learnr tutorial (#790).
57+
* `#>` is recognized as an output marker and no space is added after `#` (#771).
5458

5559
## Minor changes and fixes
5660

5761
* No curly braces are added to else statements if they are within a pipe, as
5862
this can change evaluation logic of code involving the magrittr dot in rare
5963
cases (#816).
60-
* line breaks between `}` and `else` are removed (#793).
61-
* in function calls, code after `= #\n` is indented correctly (#814).
62-
* styler won't format code chunks with explicit `tidy = FALSE` in an Rmd or Rnw
63-
code header anymore. This can be handy when the code can't be parsed, e.g.
64-
within a learnr tutorial (#790).
65-
* `#>` is recognized as an output marker and no space is added after `#` (#771).
66-
* multi-expressions containing multiple assignments no longer remove line breaks
64+
* Line breaks between `}` and `else` are removed (#793).
65+
* In function calls, code after `= #\n` is indented correctly (#814).
66+
* Multi-expressions containing multiple assignments no longer remove line breaks
6767
if they are not causing blank lines (#809).
6868
* `exclude_dirs` in `style_pkg()` is now properly respected if it is a
6969
sub-directory of a directory that is scheduled for styling (e.g.
7070
`test/testthat/some/dir`) (#811).
71-
* the user is not prompted anymore to confirm the creation of a permanent cache
71+
* The user is not prompted anymore to confirm the creation of a permanent cache
7272
as R.cache >= 0.15.0 uses a standard location in line with CRAN policies
7373
(#819).
7474
* R code chunks in nested non-R chunks in R markdown don't yield an error
7575
anymore when document is styled, chunks are still not styled (#788, #794).
7676
* `cache_activate()` and `cache_deactivate()` now respect the R
7777
option `styler.quiet` (#797).
7878
* `multi_line` attribute in parse table is now integer, not boolean (#782).
79-
* style guide used in Addin is verified when set via R option (#789).
80-
* improve pkgdown author URLs (#775).
79+
* The style guide used in Addin is verified when set via R option (#789).
80+
* Improve pkgdown author URLs (#775).
8181
* Upgrade touchstone infra (#799, #805).
8282
* Don't test on R 3.3 anymore as tidyverse [supports only four previous
8383
releases](https://www.tidyverse.org/blog/2019/04/r-version-support/) (#804).
8484
* Update Github Actions workflow (#810).
8585

8686
# styler 1.4.1
8787

88-
* Fix interaction between cache and `base_indention`. This also fixes
88+
* fix interaction between cache and `base_indention`. This also fixes
8989
the Addin for styling a selection with base indention repeatedly (#764).
90-
* Add more examples to `styler_*` helpfiles (#762).
91-
* Hexadecimal integers now preserve the trailing `L` when styled (#761).
92-
* Add a pre-push hook to make sure news bullets are added to each PR (#765).
90+
* add more examples to `styler_*` helpfiles (#762).
91+
* hexadecimal integers now preserve the trailing `L` when styled (#761).
92+
* add a pre-push hook to make sure news bullets are added to each PR (#765).
9393

9494

9595
# styler 1.4.0

0 commit comments

Comments
 (0)