From 33b6ed79fefaee1d9eff020619d507a94b8770c3 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Sun, 10 Jun 2018 01:02:36 +0200 Subject: [PATCH] Removed debug prints --- main.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/main.lua b/main.lua index 819cf3d..07b531d 100644 --- a/main.lua +++ b/main.lua @@ -153,12 +153,9 @@ local function determine_font_and_lines_for_box (font_name, text, width, height) local estimate_num_lines = height / select(2, estimate_font:get_size(text)) local lines = wrap_lines(estimate_font, text, width) local actual_num_lines = #lines - print(require'pretty'(lines)) - --local estimate_num_lines = #lines if #lines * line_height >= height then estimate_num_lines = estimate_num_lines - 1 end - print(num_lines, estimate_num_lines) -- Test for convergence if last_actual == actual_num_lines then actual_lines = lines