diff --git a/agent/nodes.py b/agent/nodes.py index a9bc08b..d3dbe15 100644 --- a/agent/nodes.py +++ b/agent/nodes.py @@ -1677,6 +1677,9 @@ def _extract_jrxml(text: str) -> str: 3. 纯 JRXML 无包装 """ text = text.strip() + # 清理 LLM 输出的 ns0: 命名空间前缀和声明 + text = text.replace("ns0:", "") + text = re.sub(r'\s+xmlns:ns0="[^"]*"', "", text) # 检测并提取 markdown 代码块中的内容 # 如果第一个代码块的内容看起来是完整 JRXML(以