Convert possible factor to character in linebreak
diff --git a/R/linebreak.R b/R/linebreak.R
index e090a5e..54d7cae 100644
--- a/R/linebreak.R
+++ b/R/linebreak.R
@@ -13,6 +13,7 @@
 linebreak <- function(x, align = c("l", "c", "r"), double_escape = F,
                       linebreaker = "\n") {
   if (is.numeric(x) | is.logical(x)) return(x)
+  x <- as.character(x)
   align <- match.arg(align, c("l", "c", "r"))
   if (double_escape) {
     ifelse(str_detect(x, linebreaker),