From 91c6e7263b217d873ce86173340d487e401a3296 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 15 Feb 2015 13:52:31 -0500 Subject: [PATCH] subrip: Fix reversed subtitle lines. * srt2vtt/subrip.scm (read-subrip): Reverse lines when finished parsing to preserve the correct order. --- srt2vtt/subrip.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srt2vtt/subrip.scm b/srt2vtt/subrip.scm index dd3b53f..0031db3 100644 --- a/srt2vtt/subrip.scm +++ b/srt2vtt/subrip.scm @@ -58,7 +58,7 @@ two values: the start time and the end time. Valid input looks like (and (string-null? line) ;; A subtitle may be a blank line! (not (null? lines)))) - lines + (reverse lines) (loop (cons line lines))))))) (make-subtitle id start end lines))) -- 2.31.1