mkvtoolnix/tests/test-673srt_different_eol_styles.rb
Moritz Bunkus 190827ee5a
text I/O: always treat newlines as EOL regardless of detected EOL style
Problematic were files for which DOS-style EOLs were
detected (carriage return followed by newline, \r\n) but which had
some lines terminated solely by a newline (\n). In such a case the
EOL was only detected upon seeing the next \r\n, and the value
returned from the `getline()` function would return something that
everyone would judge to be multiple lines of text.

Fixes #2594.
2019-08-10 16:05:57 +02:00

6 lines
214 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_673srt_different_eol_styles
describe "mkvmerge / SRT text subtitles with both DOS & Unix style line endings"
test_merge "data/subtitles/srt/different_eol_styles.srt", :exit_code => :warning