summaryrefslogtreecommitdiff
path: root/src/subtitle_asset_internal.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-10-13 22:18:59 +0200
committerCarl Hetherington <cth@carlh.net>2021-10-13 22:18:59 +0200
commit8bc480da2db924349465dbe557f87bd6f05b7fdd (patch)
tree9fcbab45685746b7a00b1045aca19f495f4f92df /src/subtitle_asset_internal.h
parent0ecf58d20eec5e9d10ee4b9f0440d232d875f94a (diff)
Basic implementation of <Space> tag in subtitles.v1.8.3
Diffstat (limited to 'src/subtitle_asset_internal.h')
-rw-r--r--src/subtitle_asset_internal.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/subtitle_asset_internal.h b/src/subtitle_asset_internal.h
index f24ed58a..55880797 100644
--- a/src/subtitle_asset_internal.h
+++ b/src/subtitle_asset_internal.h
@@ -127,14 +127,17 @@ public:
class String : public Part
{
public:
- String (std::shared_ptr<Part> parent, Font font, std::string text_)
+ String (std::shared_ptr<Part> parent, Font font, std::string text, float space_before)
: Part (parent, font)
- , text (text_)
+ , _text (text)
+ , _space_before (space_before)
{}
virtual xmlpp::Element* as_xml (xmlpp::Element* parent, Context &) const override;
- std::string text;
+private:
+ std::string _text;
+ float _space_before;
};