From: David Thompson Date: Sun, 15 Feb 2015 18:52:31 +0000 (-0500) Subject: subrip: Fix reversed subtitle lines. X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=91c6e7263b217d873ce86173340d487e401a3296;p=srt2vtt.git subrip: Fix reversed subtitle lines. * srt2vtt/subrip.scm (read-subrip): Reverse lines when finished parsing to preserve the correct order. --- 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)))