Change how whitespace in subtitles is handled.
authorCarl Hetherington <cth@carlh.net>
Thu, 16 Feb 2023 20:56:22 +0000 (21:56 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 16 Feb 2023 20:56:22 +0000 (21:56 +0100)
commit89fbc8d186378cd72ab3e9a259073d45b7b993ad
tree57d7cf19ca2f21f1acb9da4e7d7e9888cdab2163
parent8b86c990e526e55e273cc408377f13e64a27fb26
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.
src/subtitle_asset.cc
src/util.cc
src/util.h
test/data/subs5.xml [new file with mode: 0644]
test/verify_test.cc