From 178809dad7aab1a786fe3bf7dcd19f3a6ce9f2ed Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Tue, 16 Dec 2025 21:54:36 +0200 Subject: [PATCH] fix field render --- lib/submissions/generate_result_attachments.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/submissions/generate_result_attachments.rb b/lib/submissions/generate_result_attachments.rb index 12e74676..893202b1 100644 --- a/lib/submissions/generate_result_attachments.rb +++ b/lib/submissions/generate_result_attachments.rb @@ -648,7 +648,7 @@ module Submissions text_params = { font:, fill_color:, font_size: } text_params[:line_height] = text_params[:font_size] * (FONTS_LINE_HEIGHT[font_name] || 1) - text = HexaPDF::Layout::TextFragment.create(value, **text_params) + text = HexaPDF::Layout::TextFragment.create(value.tr("\u00A0", ' '), **text_params) lines = layouter.fit([text], area['w'] * width, height).lines box_height = lines.sum(&:height)