diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-28 15:07:14 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-28 15:07:14 +0100 |
commit | a61c702d91d7444ce0bb094ddccc70f72416500b (patch) | |
tree | 8d5a47c73666ee2b710a7a34c0c392b728bda45b /whiteboard.cpp | |
parent | f44d36b05e43cabde31aeaba5d25fded140345a1 (diff) |
Added WebAssembly for C++ implementation of Diff
Diffstat (limited to 'whiteboard.cpp')
-rw-r--r-- | whiteboard.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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<std::pair<std::string, std::str xml.put(fmt::format("serverinfo.{}", i.first), i.second); } - std::ostringstream oss; - // write_xml_element instead of write_xml to omit <!xml...> header - //pt::xml_parser::write_xml(oss, xml); - pt::xml_parser::write_xml_element(oss, {}, xml, -1, boost::property_tree::xml_writer_settings<pt::ptree::key_type>{}); - return oss.str(); + return Reichwein::XML::plain_xml(xml); } void Whiteboard::notify_other_connections_file(Whiteboard::connection& c, const std::string& id) |