/oss · 1 merged

asticode/go-astisub

A Go library for reading, converting and writing subtitle files such as SRT and WebVTT.

the project on GitHub (opens in a new tab)
  1. 9 Nov 2026

    Subtitles keep the text after a blank line

    What was broken
    When a subtitle in an SRT file had a blank line inside it, everything after that line was lost.
    What I changed
    Removing empty lines at the end now stops at the last line with text, so the rest of the subtitle stays.
    Why it matters
    Players and tools that read SRT files show the whole subtitle.

    see the code, #151 (opens in a new tab)

← every project