Huang Xin
1d4b7eed87
fix(txt): merge scene-break sections into the preceding chapter ( #4063 ) ( #4207 )
...
The TXT-to-EPUB segment regex splits on dash dividers (`-{8,}`), which
authors commonly use as in-chapter scene breaks. Each heading-less section
after such a divider was emitted as its own chapter — a numbered paragraph
fallback chapter, or a chapter titled after a stray sentence — flooding the
generated TOC with entries that aren't real chapters.
Mark chapters with whether their title came from a detected heading, and
merge heading-less chapters into the preceding detected chapter instead of
pushing them as separate TOC entries. Fully heading-less text still chunks
into numbered fallback chapters as before.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-17 18:20:55 +02:00
..
2026-05-16 16:13:04 +02:00
2026-02-28 08:10:31 +01:00
2026-04-28 15:35:35 +02:00
2026-05-15 19:57:33 +02:00
2026-03-22 08:16:38 +01:00
2025-12-23 06:01:06 +01:00
2026-03-30 16:25:04 +02:00
2025-10-19 18:09:04 +02:00
2025-08-11 17:53:28 +02:00
2025-03-14 18:31:51 +01:00
2026-05-01 07:26:47 +02:00
2025-11-30 21:22:54 +01:00
2026-01-19 17:42:19 +01:00
2025-07-19 20:24:30 +02:00
2026-05-07 08:28:44 +02:00
2025-07-14 19:46:57 +02:00
2026-03-09 19:00:44 +01:00
2026-05-07 08:28:44 +02:00
2026-03-02 09:18:18 +01:00
2025-06-17 03:36:23 +02:00
2026-04-09 06:10:49 +02:00
2025-12-10 15:34:23 +01:00
2026-01-19 17:42:19 +01:00
2025-06-18 10:55:24 +02:00
2026-04-03 09:06:43 +02:00
2026-04-28 18:19:05 +02:00
2026-05-15 19:57:33 +02:00
2026-05-10 17:46:25 +02:00
2025-09-24 12:19:07 +02:00
2025-09-18 14:05:16 +02:00
2026-05-10 17:46:25 +02:00
2026-05-17 05:37:26 +02:00
2026-04-27 18:32:04 +02:00
2026-04-07 21:21:51 +02:00
2026-05-16 21:23:54 +02:00
2026-05-05 19:39:26 +02:00
2025-11-26 11:31:31 +01:00
2026-05-02 19:03:35 +02:00
2025-06-03 08:55:40 +02:00
2024-12-27 11:33:38 +01:00
2026-03-30 16:25:04 +02:00
2026-04-02 20:56:38 +02:00
2025-12-08 07:16:57 +01:00
2025-12-08 07:16:57 +01:00
2025-11-18 09:10:53 +01:00
2026-02-26 11:08:21 +01:00
2025-01-07 21:57:55 +01:00
2026-05-02 19:03:35 +02:00
2025-04-09 10:47:15 +02:00
2026-05-02 19:03:35 +02:00
2025-07-28 18:44:26 +02:00
2026-05-11 04:12:37 +02:00
2024-12-24 12:31:02 +01:00
2026-05-02 19:03:35 +02:00
2026-03-27 14:59:38 +08:00
2025-12-01 09:27:22 +01:00
2026-02-06 18:26:14 +01:00
2025-07-19 20:24:30 +02:00
2026-03-29 18:31:46 +02:00
2026-05-13 16:39:57 +02:00
2026-02-18 14:28:10 +01:00
2026-01-02 14:13:24 +01:00
2026-01-25 06:41:18 +01:00
2025-05-25 07:48:57 +02:00
2025-05-25 09:32:00 +02:00
2026-05-07 10:15:31 +02:00
2026-05-07 08:28:44 +02:00
2026-04-09 15:52:49 +02:00
2026-04-01 06:35:26 +02:00
2026-02-14 17:42:37 +01:00
2026-02-26 05:30:13 +01:00
2026-02-26 05:30:13 +01:00
2026-05-17 18:20:55 +02:00
2026-04-21 10:58:26 +02:00
2025-08-03 05:36:33 +02:00
2026-04-05 14:29:30 +02:00
2025-06-30 10:04:57 +02:00
2026-05-08 21:16:52 +02:00
2025-09-04 09:38:17 +02:00
2026-04-27 19:12:50 +08:00
2026-04-27 18:32:04 +02:00
2026-01-13 15:35:57 +01:00
2026-03-21 16:43:51 +01:00
2026-03-20 18:27:52 +01:00