Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Melkiades committed Jan 10, 2024
1 parent c3ff29f commit 0034b03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Fixed pagination unexpected counts for `rlistings`' pagination by removing the manual subsetting workaround and fixing [`insightsengineering/rlistings#155`](https://github.com/insightsengineering/rlistings/issues/155).
* Improved relevant information feedback during pagination.
* Removed the possibility to set `min_siblings > 0` when dealing with listings. This allows smooth pagination when having only 2 lines.
* Added error catch for `\r` recursive special character.

## formatters 0.5.5
* Applied `styler` and resolved package lint. Changed default indentation from 4 spaces to 2.
Expand Down
6 changes: 6 additions & 0 deletions R/tostring.R
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,12 @@ setMethod("toString", "MatrixPrintForm", function(x,
"Please contact the maintainer or file an issue."
) # nocov
}
if (any(grepl("\r", mf_strings(mat)))) {
stop(
"Found recursive special characters (\\r) in string matrix produced by matrix_form. ",
"This special character is not supported and should be removed."
) # nocov
}

# Check that expansion worked for header -> should not happen
if (!is.null(mf_rinfo(mat)) && # rare case of rtables::rtable()
Expand Down

0 comments on commit 0034b03

Please sign in to comment.