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)
This commit is contained in:
balibabu
2026-03-03 11:05:24 +08:00
committed by GitHub
parent 4f09b3e2a4
commit eca60208e3

View File

@ -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)