summaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-02-16 21:56:22 +0100
committerCarl Hetherington <cth@carlh.net>2023-02-16 21:56:22 +0100
commit89fbc8d186378cd72ab3e9a259073d45b7b993ad (patch)
tree57d7cf19ca2f21f1acb9da4e7d7e9888cdab2163 /test/data
parent8b86c990e526e55e273cc408377f13e64a27fb26 (diff)
Change how whitespace in subtitles is handled.
Previously we would discard any whitespace subtitle content we found. This had the side-effect of making a verification test fail (checking that at least one subtitle is in each reel; blank subtitles are often used to avoid this warning). Here we take any subtitle content, whitespace or not, inside a <Text> or <Image> node which I think is a little more correct.
Diffstat (limited to 'test/data')
-rw-r--r--test/data/subs5.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/data/subs5.xml b/test/data/subs5.xml
new file mode 100644
index 00000000..d75583b9
--- /dev/null
+++ b/test/data/subs5.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<DCSubtitle Version="1.0">
+<SubtitleID>12345678-9abc-def0-1234-56789abcdef0</SubtitleID>
+<MovieTitle>Frobozz</MovieTitle>
+<ReelNumber>1</ReelNumber>
+<Language>English</Language>
+<LoadFont Id="Arial" URI="Arial.ttf"/>
+<Font Id="Arial">
+<Subtitle SpotNumber="1" TimeIn="00:00:04:100" TimeOut="00:00:05:199" FadeUpTime="0" FadeDownTime="0">
+ <Text HAlign="center" HPosition="0.00" VAlign="top" VPosition="40.00" Direction="horizontal"> </Text>
+</Subtitle>
+</Font>
+</DCSubtitle>