Skip to content

[BUG] Line breaks in .srt subtitles are ignored and rendered as spaces #447

@imheinrichlunge

Description

@imheinrichlunge

Describe the bug
When loading .srt subtitle files, any line breaks are ignored. Instead of displaying two separate lines, the text is displayed in a single line with a space between what should be two lines. The issue occurs with both UTF-8 with BOM and UTF-8 without BOM encoded .srt files.

Version
FastStream v1.3.65

Platform
Browser: Firefox 144.0.2 (UA - Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:144.0) Gecko/20100101 Firefox/144.0)
OS: Windows 11

Steps to Reproduce

  1. Turn on FastStream on any website. For reference, I tested using this link, but the issue occurs on all sites and videos.
  2. Load an .srt subtitle file.
  3. Play the video.
  4. Observe that the line break is replaced by a space instead of rendering as a new line.
Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions