Skip to content

Commit

Permalink
v1.0.6 CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
brodieG committed May 18, 2024
2 parents edb5fee + 266b183 commit 1000916
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
^CONTRIBUTING\.md$
^CRAN\.md$
^\.travis\.yml$
.Rdata
\.Rdata
\.Rhistory
^covr\.R
^extra$
^scratch
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: fansi
Title: ANSI Control Sequence Aware String Functions
Description: Counterparts to R string manipulation functions that account for
the effects of ANSI text formatting control sequences.
Version: 1.0.5
Version: 1.0.6
Authors@R: c(
person("Brodie", "Gaslam", email="brodie.gaslam@yahoo.com",
role=c("aut", "cre")),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# fansi Release Notes

## v1.0.6

* Fix new `-Wformat` warnings.

## v1.0.5

* Address roxygen2 breaking changes:
Expand Down
2 changes: 1 addition & 1 deletion R/fansi-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#' _Control Sequences_ starting with ESC are assumed to be two characters
#' long (including the ESC) unless they are of the CSI or OSC variety, in which
#' case their length is computed as per the [ECMA-48
#' specification](https://www.ecma-international.org/publications-and-standards/standards/ecma-48/),
#' specification](https://ecma-international.org/publications-and-standards/standards/ecma-48/),
#' with the exception that [OSC hyperlinks](#osc-hyperlinks) may be terminated
#' with BEL ("\\a") in addition to ST ("ESC\\"). `fansi` handles most common
#' _Control Sequences_ in its parsing algorithms, but it is not a conforming
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ master branch typically mirrors CRAN and should be stable.
* [ansistrings](https://github.com/r-lib/ansistrings/), which implements similar
functionality.
* [ECMA-48 - Control Functions For Coded Character
Sets](https://www.ecma-international.org/publications-and-standards/standards/ecma-48/),
Sets](https://ecma-international.org/publications-and-standards/standards/ecma-48/),
in particular pages 10-12, and 61.
* [CCITT Recommendation T.416](https://www.itu.int/rec/dologin_pub.asp?lang=e&id=T-REC-T.416-199303-I!!PDF-E&type=items)
* [ANSI Escape Code - Wikipedia](https://en.wikipedia.org/wiki/ANSI_escape_code)
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,12 @@ including combining emoji:
You can translate ANSI CSI SGR formatted strings into their HTML
counterparts with `to_html`:

![Translate to
HTML](https://github.com/brodieG/fansi/raw/v1.0-rc/extra/images/sgr_to_html.png)
<figure>
<img
src="https://github.com/brodieG/fansi/raw/v1.0-rc/extra/images/sgr_to_html.png"
alt="Translate to HTML" />
<figcaption aria-hidden="true">Translate to HTML</figcaption>
</figure>

## Rmarkdown

Expand Down Expand Up @@ -172,7 +176,7 @@ working. The master branch typically mirrors CRAN and should be stable.
- [ansistrings](https://github.com/r-lib/ansistrings/), which
implements similar functionality.
- [ECMA-48 - Control Functions For Coded Character
Sets](https://www.ecma-international.org/publications-and-standards/standards/ecma-48/),
Sets](https://ecma-international.org/publications-and-standards/standards/ecma-48/),
in particular pages 10-12, and 61.
- [CCITT Recommendation
T.416](https://www.itu.int/rec/dologin_pub.asp?lang=e&id=T-REC-T.416-199303-I!!PDF-E&type=items)
Expand Down
2 changes: 1 addition & 1 deletion man/fansi.Rd

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

2 changes: 1 addition & 1 deletion man/strtrim_ctl.Rd

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

2 changes: 1 addition & 1 deletion man/strtrim_sgr.Rd

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

2 changes: 1 addition & 1 deletion man/trimws_ctl.Rd

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

1 change: 0 additions & 1 deletion src/unhandled.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ SEXP FANSI_unhandled_esc(SEXP x, SEXP term_cap) {
if(res == R_NilValue)
// nocov start
error(
"%s%s",
"Internal Error: mismatch between list and err count; "
"contact maintainer."
);
Expand Down
2 changes: 1 addition & 1 deletion src/wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static struct FANSI_prefix_dat drop_pre_indent(struct FANSI_prefix_dat dat) {
if(dat.indent < 0)
// nocov start
error(
"Internal Error: cannot drop indent when there is none; contact ",
"Internal Error: cannot drop indent when there is none; contact "
"maintainer."
);
// nocov end
Expand Down
2 changes: 1 addition & 1 deletion src/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ static char * color_token(
// nocov start
error(
"Internal Error: exceeded color buffer (%d vs %d).",
buff_track - buff, CLR_BUFF_SIZE
(int) (buff_track - buff), CLR_BUFF_SIZE
);
// nocov end
return buff;
Expand Down

0 comments on commit 1000916

Please sign in to comment.