fix: escape quotes in DOT renderer (#212) #216

Merged
Rockachopa merged 1 commits from burn/212-fix-dot-quoting into main 2026-04-21 15:21:14 +00:00
Owner

Closes #212.

Problem: Lines 152-153 in scripts/dependency_graph.py used unescaped double quotes inside Python double-quoted string literals, causing SyntaxError.

Fix: Changed to single-quoted strings with escaped inner double quotes.

# Before (broken):
lines.append("  node [shape=box, style=filled, fillcolor="#1a1a2e", fontcolor="#e6edf3"];")

# After (fixed):
lines.append('  node [shape=box, style=filled, fillcolor="#1a1a2e", fontcolor="#e6edf3"];')

Verified: python3 -m py_compile passes. DOT output unchanged.

Supersedes #213.

Closes #212. **Problem**: Lines 152-153 in `scripts/dependency_graph.py` used unescaped double quotes inside Python double-quoted string literals, causing SyntaxError. **Fix**: Changed to single-quoted strings with escaped inner double quotes. ``` # Before (broken): lines.append(" node [shape=box, style=filled, fillcolor="#1a1a2e", fontcolor="#e6edf3"];") # After (fixed): lines.append(' node [shape=box, style=filled, fillcolor="#1a1a2e", fontcolor="#e6edf3"];') ``` **Verified**: `python3 -m py_compile` passes. DOT output unchanged. Supersedes #213.
Rockachopa added 1 commit 2026-04-21 11:20:37 +00:00
fix: escape quotes in DOT renderer (#212)
Some checks failed
Test / pytest (pull_request) Failing after 13s
f7c479c4eb
Lines 152-153 used unescaped double quotes inside
Python double-quoted string literals. Switched to
single-quoted strings.
Rockachopa merged commit c106db2e28 into main 2026-04-21 15:21:14 +00:00
Sign in to join this conversation.