Summary: | Kdenlive ignores more than one space in the subtitles. | ||
---|---|---|---|
Product: | [Applications] kdenlive | Reporter: | qla0 |
Component: | Video Effects & Transitions | Assignee: | erjiang <erjiang> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | erjiang |
Priority: | NOR | ||
Version First Reported In: | 22.04.3 | ||
Target Milestone: | --- | ||
Platform: | PCLinuxOS | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/multimedia/kdenlive/commit/6e6d06dd2d010ea88160783bc89f751c25a868cd | Version Fixed In: | |
Sentry Crash Report: |
Description
qla0
2022-08-14 11:27:49 UTC
Confirmed on latest master (74ef83e0): when adding subs with many spaces, kdenlive saves all of the spaces into the srt file. When opening the kdenlive project again, the spaces are lost and the srt file is overwritten, losing the spaces. A possibly relevant merge request was started @ https://invent.kde.org/multimedia/kdenlive/-/merge_requests/340 kdenlive: ver. 22.08.0 ver. 22.11.70 (rev. 448dc5b73) Still many spaces is ignored!. The merge request linked above has not been merged yet. If/when it has been merged, you would be able to test it in a nightly build or another later build that contains it. Git commit 61c735cd77b191440533a967511bb14749e16017 by Eric Jiang. Committed on 23/08/2022 at 05:50. Pushed by mardelle into branch 'master'. Don't remove consecutive spaces in SRT subtitles 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. M +1 -1 src/bin/model/subtitlemodel.cpp A +4 -0 tests/dataset/multiple-spaces.srt M +8 -0 tests/subtitlestest.cpp https://invent.kde.org/multimedia/kdenlive/commit/61c735cd77b191440533a967511bb14749e16017 Git commit 6e6d06dd2d010ea88160783bc89f751c25a868cd by Jean-Baptiste Mardelle, on behalf of Eric Jiang. Committed on 05/09/2022 at 06:37. Pushed by mardelle into branch 'release/22.08'. Don't remove consecutive spaces in SRT subtitles 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. M +1 -1 src/bin/model/subtitlemodel.cpp A +4 -0 tests/dataset/multiple-spaces.srt https://invent.kde.org/multimedia/kdenlive/commit/6e6d06dd2d010ea88160783bc89f751c25a868cd |