From a61c702d91d7444ce0bb094ddccc70f72416500b Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 28 Jan 2023 15:07:14 +0100 Subject: Added WebAssembly for C++ implementation of Diff --- whiteboard.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'whiteboard.cpp') diff --git a/whiteboard.cpp b/whiteboard.cpp index df18242..b84f7cc 100644 --- a/whiteboard.cpp +++ b/whiteboard.cpp @@ -36,6 +36,7 @@ #include "libreichwein/base64.h" #include "libreichwein/file.h" +#include "libreichwein/xml.h" #include "config.h" #include "qrcode.h" @@ -88,11 +89,7 @@ std::string make_xml(const std::initializer_list header - //pt::xml_parser::write_xml(oss, xml); - pt::xml_parser::write_xml_element(oss, {}, xml, -1, boost::property_tree::xml_writer_settings{}); - return oss.str(); + return Reichwein::XML::plain_xml(xml); } void Whiteboard::notify_other_connections_file(Whiteboard::connection& c, const std::string& id) -- cgit v1.2.3