subrip: Fix reversed subtitle lines.
authorDavid Thompson <dthompson2@worcester.edu>
Sun, 15 Feb 2015 18:52:31 +0000 (13:52 -0500)
committerDavid Thompson <dthompson2@worcester.edu>
Sun, 15 Feb 2015 19:33:38 +0000 (14:33 -0500)
* srt2vtt/subrip.scm (read-subrip): Reverse lines when finished parsing
  to preserve the correct order.

srt2vtt/subrip.scm

index dd3b53f6500f44efccb1046292c7831cb33379ec..0031db363eafd1a2b5b70774a0f73a4fc757a7f9 100644 (file)
@@ -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)))