summaryrefslogtreecommitdiff
path: root/src/interop_subtitle_asset.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-03-15 15:32:49 +0100
committerCarl Hetherington <cth@carlh.net>2022-03-20 21:20:58 +0100
commit066e30f30f851396bd6f10d50a448507e1c0b392 (patch)
treeb8de41fec71f78debe97ee9fcdd8dc3be65f9b45 /src/interop_subtitle_asset.cc
parent2516e657c80da672d1ea1ef5b5a189ef8799c070 (diff)
Nearly pretty-print subtitle XML (though not in <Text> nodes).v1.8.12
This is an attempt to fix DoM bug #2205.
Diffstat (limited to 'src/interop_subtitle_asset.cc')
-rw-r--r--src/interop_subtitle_asset.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interop_subtitle_asset.cc b/src/interop_subtitle_asset.cc
index d5147284..bb0cad70 100644
--- a/src/interop_subtitle_asset.cc
+++ b/src/interop_subtitle_asset.cc
@@ -125,7 +125,7 @@ InteropSubtitleAsset::xml_as_string () const
subtitles_as_xml (root, 250, Standard::INTEROP);
- return doc.write_to_string ("UTF-8");
+ return format_xml(doc, {});
}