Skip to content

Commit

Permalink
bug fix: #118
Browse files Browse the repository at this point in the history
error with missing value
  • Loading branch information
elong0527 committed Aug 26, 2022
1 parent 5d49141 commit 7b484d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/rtf_nrow.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ rtf_nline_vector <- function(text, strwidth, size) {
index <- strwidth / size > 1
n_row <- rep(1, length(text))

if (any(index)) {
if (any(na.omit(index))) {
l <- length(text)

if (length(strwidth) < l) {
Expand Down

0 comments on commit 7b484d2

Please sign in to comment.