@@ -44,7 +44,6 @@ function crop_width_to_fit_string_in_field(str::AbstractString, field_width::Int
4444
4545 # If the user is asking for the continuation char, we must crop the string to account
4646 # for the continuation char.
47- cont_str = " "
4847
4948 if add_continuation_char
5049 cont_str_width = textwidth (continuation_char)
@@ -2579,6 +2578,8 @@ function _text_process_data_cell(ptable::ProcessedTable, cell_data::Any, cell_st
25792578 lstr = textwidth (cell_str)
25802579
25812580 if cell_data isa CustomTextCell
2581+ @warn " CustomTextCell is not supported in the current version of Custom PrettyTables.jl."
2582+ #=
25822583 # To align a custom text cell, we need to compute the alignment and cropping data
25832584 # and apply it using the API functions.
25842585 padding = padding_for_string_alignment(cell_str, column_width, alignment; fill = true, printable_string_width = lstr)
@@ -2600,6 +2601,7 @@ function _text_process_data_cell(ptable::ProcessedTable, cell_data::Any, cell_st
26002601 end
26012602
26022603 cell_str = get_printable_cell_line(cell_data, l)::String
2604+ =#
26032605 else
26042606 # Align and crop the string to be printed.
26052607 cell_str = align_string (cell_str, column_width, alignment; fill = true , printable_string_width = lstr)
@@ -3069,9 +3071,12 @@ end
30693071
30703072function _text_parse_cell (@nospecialize (io:: IOContext ), cell:: CustomTextCell ; kwargs... )
30713073 # Call the API function to reset all the fields in the custom text cell.
3074+ @warn " CustomTextCell is not supported in the current version of Custom PrettyTables.jl."
3075+ #=
30723076 reset!(cell)
30733077 cell_vstr = parse_cell_text(cell; kwargs...)
30743078 return cell_vstr
3079+ =#
30753080end
30763081
30773082_text_parse_cell (@nospecialize (io:: IOContext ), cell:: Missing ; kwargs... ) = [" missing" ]
@@ -3100,7 +3105,7 @@ function _text_render_cell(::Val{:print}, @nospecialize(io::IOContext), str::Abs
31003105 # to the list of characters to be escaped.
31013106 output_str = Vector {String} (undef, length (vstr))
31023107
3103- @inbounds for i in 1 : length (vstr)
3108+ @inbounds for i in 1 : numel (vstr)
31043109 s = vstr[i]
31053110 output_str[i] = sprint (escape_string, s, " " , sizehint = lastindex (s))
31063111 end
@@ -3128,7 +3133,7 @@ function _text_render_cell(::Val{:show}, @nospecialize(io::IOContext), v::Abstra
31283133 vstr = sprint .(show, aux; context = context)
31293134
31303135 if ! isstring
3131- for i in 1 : length (vstr)
3136+ for i in 1 : numel (vstr)
31323137 aux_i = first (vstr[i], length (vstr[i]) - 1 )
31333138 vstr[i] = last (aux_i, length (aux_i) - 1 )
31343139 end
0 commit comments