From 8bc480da2db924349465dbe557f87bd6f05b7fdd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 13 Oct 2021 22:18:59 +0200 Subject: Basic implementation of tag in subtitles. --- src/subtitle_asset.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/subtitle_asset.h') 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; + float space_before = 0; }; void parse_subtitles (xmlpp::Element const * node, std::vector& state, boost::optional 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 const & parse_state, Standard standard); + void maybe_add_subtitle (std::string text, std::vector const & parse_state, float space_before, Standard standard); static void pull_fonts (std::shared_ptr part); }; -- cgit v1.2.3