Repository navigation
Commit 3633e3c
fix(cli): keep punctuation-only speaker turns in
Bounding `lineMarkerStart` at the previous label also made "only whitespace since the previous label" count as the start of a line, so a punctuation-only turn after a label on the same line was read as the next label's list marker and dropped with it (`Alice: ... Bob: Yes?`, `Alice: โ Bob: Sorry, go on.`, and `Alice: ?! Bob: What?` each sent only Bob's turn).
Judge the line start on the whole text (`text[:floor+len(rest)]`) for every marker. The scan still stops at the previous label (`floor`), so emoji names (`๐: ๐ค:`) do not overlap or panic.
PiperOrigin-RevId: 994686637tts --multi-speaker
1 parent 1f78c8a commit 3633e3c
2 files changed
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | | - | |
| 519 | + | |
| 520 | + | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
524 | 526 | | |
525 | 527 | | |
526 | 528 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
277 | | - | |
278 | 278 | | |
279 | | - | |
280 | | - | |
281 | | - | |
| 279 | + | |
282 | 280 | | |
283 | | - | |
| 281 | + | |
284 | 282 | | |
285 | 283 | | |
286 | 284 | | |
| |||
0 commit comments