diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-10-13 22:18:59 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-10-13 22:18:59 +0200 |
| commit | 8bc480da2db924349465dbe557f87bd6f05b7fdd (patch) | |
| tree | 9fcbab45685746b7a00b1045aca19f495f4f92df /src/subtitle_asset.h | |
| parent | 0ecf58d20eec5e9d10ee4b9f0440d232d875f94a (diff) | |
Basic implementation of <Space> tag in subtitles.v1.8.3
Diffstat (limited to 'src/subtitle_asset.h')
| -rw-r--r-- | src/subtitle_asset.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h index 8ec57fce..f51906e2 100644 --- a/src/subtitle_asset.h +++ b/src/subtitle_asset.h @@ -156,6 +156,7 @@ protected: IMAGE }; boost::optional<Type> type; + float space_before = 0; }; void parse_subtitles (xmlpp::Element const * node, std::vector<ParseState>& state, boost::optional<int> tcr, Standard standard); @@ -205,7 +206,7 @@ private: friend struct ::pull_fonts_test2; friend struct ::pull_fonts_test3; - void maybe_add_subtitle (std::string text, std::vector<ParseState> const & parse_state, Standard standard); + void maybe_add_subtitle (std::string text, std::vector<ParseState> const & parse_state, float space_before, Standard standard); static void pull_fonts (std::shared_ptr<order::Part> part); }; |
