Commit 70ad31d
committed
Fix
`quarto preview subdir/page.qmd` in a website project crashes with
`readfile subdir\subdir\page.qmd`. The `projectPath` function was
designed for output filenames (resolving relative to source directory
via dirname+join), but was also called with the source path itself.
When that source path was relative, dirname+join doubled the subdirectory.
Split into two functions: `projectRelativeInput` for source paths
(normalizes directly) and `projectOutputPath` for output filenames
(preserves the dirname+join logic).quarto preview subdir/file.qmd crashing with doubled path1 parent a18919f commit 70ad31d
1 file changed
Lines changed: 20 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
389 | | - | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
390 | 406 | | |
391 | 407 | | |
392 | 408 | | |
| |||
411 | 427 | | |
412 | 428 | | |
413 | 429 | | |
414 | | - | |
| 430 | + | |
415 | 431 | | |
416 | 432 | | |
417 | 433 | | |
| |||
421 | 437 | | |
422 | 438 | | |
423 | 439 | | |
424 | | - | |
| 440 | + | |
425 | 441 | | |
426 | 442 | | |
427 | 443 | | |
| |||
0 commit comments