From eca60208e3a8a1b5a7b09c295fdfbd0b4bfbb375 Mon Sep 17 00:00:00 2001 From: balibabu Date: Tue, 3 Mar 2026 11:05:24 +0800 Subject: [PATCH] Fix: The document generation node cannot generate the output content of a large model to a file. #13321 (#13326) ### What problem does this PR solve? Fix: The document generation node cannot generate the output content of a large model to a file. #13321 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- agent/component/docs_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/component/docs_generator.py b/agent/component/docs_generator.py index 9c2442958..a3f165a55 100644 --- a/agent/component/docs_generator.py +++ b/agent/component/docs_generator.py @@ -277,7 +277,7 @@ class PDFGenerator(Message, ABC): print(f"Starting PDF generation for title: {title}, content length: {len(content)} chars") # Resolve variable references in content using canvas - if content and self._canvas.is_reff(content): + if content and self._canvas.is_reff(content.strip()): # Extract the variable reference and get its value import re matches = re.findall(self.variable_ref_patt, content, flags=re.DOTALL)