@@ -320,7 +320,7 @@ cache.on <- function()
320
320
# ' splitLine("foo bar", 6)
321
321
# ' splitLine("foo bar", 7)
322
322
# ' splitLine("Pandoc Package", 3, TRUE)
323
- splitLine <- function (x , max.width = panderOptions(' table.split.cells' ), use.hyphening = FALSE ){
323
+ splitLine <- function (x , max.width = panderOptions(' table.split.cells' ), use.hyphening = FALSE ) {
324
324
if (any(is.na(x )))
325
325
return (x )
326
326
if (! is.character(x ) || ! is.null(dim(x )) || length(x ) != 1 || x == " " )
@@ -329,9 +329,9 @@ splitLine <- function(x, max.width = panderOptions('table.split.cells'), use.hyp
329
329
return (x )
330
330
if (is.infinite(max.width ))
331
331
max.width <- .Machine $ integer.max
332
- if (use.hyphening && ! requireNamespace(' coRpus ' , quietly = TRUE ))
332
+ if (use.hyphening && ! requireNamespace(' koRpus ' , quietly = TRUE ))
333
333
use.hyphening <- FALSE
334
334
hyphen_f <- function (s )
335
- koRpus :: hyphen(s , hyph.pattern = " en.us" , quiet = TRUE )@ hyphen [1 ,2 ]
335
+ koRpus :: hyphen(s , hyph.pattern = ' en.us' , quiet = TRUE )@ hyphen [1 , 2 ]
336
336
.Call(' pander_splitLine_cpp' , PACKAGE = ' pander' , x , max.width , use.hyphening , hyphen_f )
337
337
}
0 commit comments