summaryrefslogtreecommitdiff
path: root/src/subtitle_asset.h
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/subtitle_asset.h
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/subtitle_asset.h')
-rw-r--r--src/subtitle_asset.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h
index f51906e2..88b5378c 100644
--- a/src/subtitle_asset.h
+++ b/src/subtitle_asset.h
@@ -48,9 +48,13 @@
#include <libcxml/cxml.h>
#include <boost/shared_array.hpp>
#include <map>
+#include <string>
+#include <utility>
+#include <vector>
namespace xmlpp {
+ class Document;
class Element;
}
@@ -128,6 +132,8 @@ public:
return _raw_xml;
}
+ static std::string format_xml (xmlpp::Document const& document, std::vector<std::pair<std::string, std::string>> const& namespaces);
+
protected:
friend struct ::interop_dcp_font_test;
friend struct ::smpte_dcp_font_test;