From 723571f9f71687e0e831d3faf64ba504bcaa3187 Mon Sep 17 00:00:00 2001 From: Dominique Luna Date: Sat, 2 Mar 2024 13:55:14 -0500 Subject: [PATCH] upper limit --- src/nest_utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nest_utils.jl b/src/nest_utils.jl index e39b51adf..665032f13 100644 --- a/src/nest_utils.jl +++ b/src/nest_utils.jl @@ -219,7 +219,7 @@ function find_optimal_nest_placeholders( max_margin::Int, )::Vector{Int} placeholder_inds = findall(n -> n.typ === PLACEHOLDER, fst.nodes) - if length(placeholder_inds) <= 1 + if length(placeholder_inds) <= 1 || length(placeholder_inds) >= 20 return placeholder_inds end newline_inds = findall(n -> n.typ === NEWLINE, fst.nodes)