Skip to content

Don't remove consecutive spaces in SRT subtitles

Eric Jiang requested to merge erjiang/kdenlive:srt-multiple-spaces into master

The Kdenlive UI allows you to add multiple spaces between words in subtitles. This displays correctly in the UI and is preserved when saving the SRT file, but the spaces are removed when opening the SRT file.

Changing line.simplified() to line.trimmed() seems to fix the round-trip issue.

I tested VLC which seems to display multiple consecutive spaces from SRT files.

BUG: 457878

Merge request reports

Loading