summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-02-24 14:57:28 +0000
committerCarl Hetherington <cth@carlh.net>2017-02-24 14:57:28 +0000
commit495555716e98a02b571a5dbc3200ef4ce928272c (patch)
treeb7dd6fadf86f9c86c01e1a715c6e48897760bdb7 /src
parentcab0005c7370a1101df604838ea214eb741098d7 (diff)
Format XML sub output nicely with indents and such.
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 cfd37cb8..99511222 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 ("UTF-8");
+ return doc.write_to_string_formatted ("UTF-8");
}
void
diff --git a/src/smpte_subtitle_asset.cc b/src/smpte_subtitle_asset.cc
index c2456b9c..3b30a0c7 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 ("UTF-8");
+ return doc.write_to_string_formatted ("UTF-8");
}
/** Write this content to a MXF file */