Commit e92876f
Fix prettify include paths to be relative to containing file
Include text was using the CWD-relative path from the AST, which
produced wrong paths at every nesting level. Now computes the
include path relative to the current output file by stripping
the current file's directory prefix from the included file's
output path. Works correctly for both top-level and nested files.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent df539f3 commit e92876f
File tree
1 file changed
+10
-1
lines changed1 file changed
+10
-1
lines changedLines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
421 | 420 | | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
422 | 431 | | |
423 | 432 | | |
424 | 433 | | |
| |||
0 commit comments