diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-02-16 21:56:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-16 21:56:22 +0100 |
| commit | 89fbc8d186378cd72ab3e9a259073d45b7b993ad (patch) | |
| tree | 57d7cf19ca2f21f1acb9da4e7d7e9888cdab2163 /src/util.cc | |
| parent | 8b86c990e526e55e273cc408377f13e64a27fb26 (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 'src/util.cc')
| -rw-r--r-- | src/util.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/util.cc b/src/util.cc index b58035ea..9cc35ad6 100644 --- a/src/util.cc +++ b/src/util.cc @@ -158,19 +158,6 @@ dcp::make_digest (boost::filesystem::path filename, function<void (float)> progr } -bool -dcp::empty_or_white_space (string s) -{ - for (size_t i = 0; i < s.length(); ++i) { - if (s[i] != ' ' && s[i] != '\n' && s[i] != '\t') { - return false; - } - } - - return true; -} - - void dcp::init (optional<boost::filesystem::path> given_resources_directory) { |
