projects
/
srt2vtt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42aea2a
)
subrip: Fix reversed subtitle lines.
author
David Thompson
<dthompson2@worcester.edu>
Sun, 15 Feb 2015 18:52:31 +0000
(13:52 -0500)
committer
David 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
patch
|
blob
|
history
diff --git
a/srt2vtt/subrip.scm
b/srt2vtt/subrip.scm
index dd3b53f6500f44efccb1046292c7831cb33379ec..0031db363eafd1a2b5b70774a0f73a4fc757a7f9 100644
(file)
--- 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)))