Commit 62158f5
committed
fix: preserve newline character in project structure conversion
Command substitution ($()) strips trailing newlines, causing the
newline variable to be empty. This resulted in sed deleting all
\\n sequences instead of converting them to actual newlines.
Changed from:
newline=$(printf '\n') # Strips newline
To:
printf -v newline '\n' # Preserves newline
This fixes malformed project structure sections in generated agent
context files where directories should appear on separate lines.
Fixes issue where get_project_structure() output like
"backend/\\nfrontend/\\ntests/" was not properly converted to
multi-line format in agent files.1 parent a998d13 commit 62158f5
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
| 351 | + | |
351 | 352 | | |
352 | 353 | | |
353 | 354 | | |
| |||
0 commit comments