summaryrefslogtreecommitdiffhomepage
path: root/whiteboard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'whiteboard.cpp')
-rw-r--r--whiteboard.cpp7
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)