Repository navigation
Commit f1e71be
committed
Fix font package detection for fonts with spaces in names
Fonts with spaces (e.g., "Noto Emoji", "DejaVu Sans") were failing
auto-installation because fontSearchTerm() generated search patterns
that didn't match font files. Font files use concatenated names without
spaces (NotoEmoji-Regular.ttf, DejaVuSans-Bold.ttf).
Replace spaces with \s* regex pattern to match files with or without spaces.
Closes #13726
Fix font package detection for fonts with spaces in names
Resolves an issue where fonts packages containing spaces in their names
(e.g., "Noto Sans") were not properly detected in Quarto projects.
Updated font path handling to correctly quote and process font names
with whitespace characters.1 parent e15a854 commit f1e71be
3 files changed
Lines changed: 7 additions & 2 deletions
File tree
- news
- src/command/render/latexmk
- tests/unit/latexmk
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
| 289 | + | |
289 | 290 | | |
290 | 291 | | |
291 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
0 commit comments