From 6d9f0c7f6ee6b58798432b04e495defc0f4222cc Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:03:17 +0000 Subject: [PATCH] chore: apply automated updates --- src/utils/box.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/box.ts b/src/utils/box.ts index 0d805bd..dba957f 100644 --- a/src/utils/box.ts +++ b/src/utils/box.ts @@ -256,7 +256,8 @@ export function box(text: string, _opts: BoxOpts = {}) { opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1; const height = textLines.length + paddingOffset; const width = - Math.max(...textLines.map((line) => stripAnsi(line).length)) + paddingOffset; + Math.max(...textLines.map((line) => stripAnsi(line).length)) + + paddingOffset; const widthOffset = width + paddingOffset; const leftSpace =