Skip to content

Commit c7ab45c

Browse files
committed
fix: inconsistent YAML escaping for workspace_name
1 parent 621c3a3 commit c7ab45c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

utils/cursor_md_exporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,13 @@ def cursor_ide_chat_to_markdown(
366366
fm_lines = ["---"]
367367
fm_lines.append(f"log_id: {composer_id}")
368368
fm_lines.append("log_type: chat")
369-
fm_lines.append(f'title: "{title.replace(chr(34), chr(92) + chr(34))}"')
369+
fm_lines.append(f"title: {json.dumps(title, ensure_ascii=False)}")
370370
fm_lines.append(f"created_at: {datetime.fromtimestamp(created_ms / 1000).isoformat()}")
371371
fm_lines.append(
372372
f"updated_at: {datetime.fromtimestamp(updated_at / 1000).isoformat() if updated_at else datetime.now().isoformat()}"
373373
)
374374
fm_lines.append(f"workspace: {ws_slug}")
375-
fm_lines.append(f'workspace_name: "{ws_display_name}"')
375+
fm_lines.append(f"workspace_name: {json.dumps(ws_display_name, ensure_ascii=False)}")
376376
if model_name and model_name != "default":
377377
fm_lines.append(f"model: {model_name}")
378378
fm_lines.append(f"message_count: {len(bubbles)}")

0 commit comments

Comments
 (0)