Leonardo commited on
Commit
0095beb
·
verified ·
1 Parent(s): 92577b4

Update scripts/frontmatter_tool.py

Browse files
Files changed (1) hide show
  1. scripts/frontmatter_tool.py +3 -2
scripts/frontmatter_tool.py CHANGED
@@ -136,8 +136,8 @@ class FrontmatterGeneratorTool(Tool):
136
 
137
  # Special handling for TextInspectorTool output
138
  if content.startswith("Document content:"):
139
- content = content[len("Document content:") :].strip()
140
-
141
  # Process based on mode
142
  try:
143
  if mode == "extract":
@@ -399,3 +399,4 @@ class FrontmatterGeneratorTool(Tool):
399
 
400
  # Combine frontmatter with content
401
  return frontmatter + clean_content
 
 
136
 
137
  # Special handling for TextInspectorTool output
138
  if content.startswith("Document content:"):
139
+ content = content[len("Document content:"):].strip()
140
+
141
  # Process based on mode
142
  try:
143
  if mode == "extract":
 
399
 
400
  # Combine frontmatter with content
401
  return frontmatter + clean_content
402
+