From 31ecd2896d85348d368659f8e86ebd55037c0330 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Mon, 11 Nov 2024 17:24:13 +0100 Subject: [PATCH] drop `1.6` lts compat code --- src/show.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/show.jl b/src/show.jl index 367c1fdb..82722820 100644 --- a/src/show.jl +++ b/src/show.jl @@ -83,7 +83,7 @@ function print_title( post_pad = blank^(max(0, p_width - length(pre_pad) - length(title))) print_nocol(io, post_pad, right_pad) ( - count(string('\n'), title) + 1, # NOTE: string(...) for compat with 1.6 + count('\n', title) + 1, length(strip(left_pad * pre_pad * title * post_pad * right_pad, '\n')), ) end