Commit 64adfe4
authored
fix: remove 'some' prefix from RenderDisplay for unspecified quantities (#9)
When an ingredient has no quantity specified (e.g., @olive{}), RenderDisplay()
was outputting 'some olive' instead of just 'olive'. This caused awkward
prose like 'use an some olive'.
The 'some' prefix is not part of the cooklang spec - ingredients without
quantities should just display their name. This aligns with the spec's
example: 'Then add @salt and @Ground black pepper{} to taste.'1 parent 1bc6ea8 commit 64adfe4
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
| 242 | + | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
| |||
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
250 | | - | |
251 | | - | |
252 | 251 | | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
0 commit comments