summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-06-29 13:34:06 +0100
committerCarl Hetherington <cth@carlh.net>2017-06-29 13:34:06 +0100
commita1d530be29598018b32b0b709fd8c769e972bd15 (patch)
tree49e8cf0700d631e3ff5e644344ef6a0dd852c28f /src
parent64c8913cc4932266cfb6490cc30e0f53a6079d03 (diff)
Remove use of _formatted when writing subtitle XML.
This has the potential to add unwanted whitespace and newlines which are significant in subtitles. I think we'd have to write the XML ourselves to get around this.
Diffstat (limited to 'src')
-rw-r--r--src/interop_subtitle_asset.cc2
-rw-r--r--src/smpte_subtitle_asset.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/interop_subtitle_asset.cc b/src/interop_subtitle_asset.cc
index 99511222..cfd37cb8 100644
--- a/src/interop_subtitle_asset.cc
+++ b/src/interop_subtitle_asset.cc
@@ -102,7 +102,7 @@ InteropSubtitleAsset::xml_as_string () const
subtitles_as_xml (root, 250, INTEROP);
- return doc.write_to_string_formatted ("UTF-8");
+ return doc.write_to_string ("UTF-8");
}
void
diff --git a/src/smpte_subtitle_asset.cc b/src/smpte_subtitle_asset.cc
index 3b30a0c7..c2456b9c 100644
--- a/src/smpte_subtitle_asset.cc
+++ b/src/smpte_subtitle_asset.cc
@@ -278,7 +278,7 @@ SMPTESubtitleAsset::xml_as_string () const
subtitles_as_xml (root->add_child ("SubtitleList", "dcst"), _time_code_rate, SMPTE);
- return doc.write_to_string_formatted ("UTF-8");
+ return doc.write_to_string ("UTF-8");
}
/** Write this content to a MXF file */