webvtt-py icon indicating copy to clipboard operation
webvtt-py copied to clipboard

Fix cue skipped when empty line follows timing (#74)

Open SHi-ON opened this issue 6 months ago • 0 comments

Closes #74

Summary

This pull request addresses issue #74 by updating the subtitle cue parsing logic. Now, any multi-line cue where an empty line immediately follows the timing line will be stripped and parsed, as per the desired behavior.

Details

  • Checks for an empty line(s) directly after the timing in multi-line subtitle cues.
  • Adds test coverage for this edge case.

SHi-ON avatar Jun 12 '25 16:06 SHi-ON