fix: escape DOT renderer quotes in dependency_graph.py (#212) #214

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

Problem

Lines 152-153 used unescaped double quotes inside double-quoted Python strings:

lines.append("  node [shape=box, style=filled, fillcolor="#1a1a2e", fontcolor="#e6edf3"];")
lines.append("  edge [color="#4a4a6a"];")

Python parsed the " inside " as the end of the string literal, causing SyntaxError: '(' was never closed.

Fix

Switched outer quotes to single quotes:

lines.append('  node [shape=box, style=filled, fillcolor="#1a1a2e", fontcolor="#e6edf3"];')
lines.append('  edge [color="#4a4a6a"];')

Verification

$ python3 -m py_compile scripts/dependency_graph.py
# exits 0, no error

DOT output still includes the intended styling with hex color codes.

Closes #212

## Problem Lines 152-153 used unescaped double quotes inside double-quoted Python strings: ```python lines.append(" node [shape=box, style=filled, fillcolor="#1a1a2e", fontcolor="#e6edf3"];") lines.append(" edge [color="#4a4a6a"];") ``` Python parsed the `"` inside `"` as the end of the string literal, causing `SyntaxError: '(' was never closed`. ## Fix Switched outer quotes to single quotes: ```python lines.append(' node [shape=box, style=filled, fillcolor="#1a1a2e", fontcolor="#e6edf3"];') lines.append(' edge [color="#4a4a6a"];') ``` ## Verification ``` $ python3 -m py_compile scripts/dependency_graph.py # exits 0, no error ``` DOT output still includes the intended styling with hex color codes. Closes #212
Rockachopa added 1 commit 2026-04-21 11:18:20 +00:00
fix: escape DOT renderer quotes in dependency_graph.py (#212)
Some checks failed
Test / pytest (pull_request) Failing after 47s
0e54a6bc1a
Lines 152-153 used unescaped double quotes inside
double-quoted Python strings. Switched to single
quotes for outer string literals.

Closes #212
Rockachopa force-pushed fix/212-dot-quoting from 0e54a6bc1a to ec0e9d65ca 2026-04-21 11:24:03 +00:00 Compare
Rockachopa merged commit 8aa9c9f018 into main 2026-04-21 15:26:14 +00:00
Sign in to join this conversation.