aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/xml/document/xml-document.cpp
diff options
context:
space:
mode:
authori-sokolov <i-sokolov@yandex-team.ru>2022-02-10 16:46:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:30 +0300
commit12c01f0701d50bc3f68eb36add9bff803ca94f35 (patch)
tree4b775523c0da7b1613a0407a30e4998a436911cd /library/cpp/xml/document/xml-document.cpp
parent4b839d0704ee9be1dabb0310a1f03af24963637b (diff)
downloadydb-12c01f0701d50bc3f68eb36add9bff803ca94f35.tar.gz
Restoring authorship annotation for <i-sokolov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/xml/document/xml-document.cpp')
-rw-r--r--library/cpp/xml/document/xml-document.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/xml/document/xml-document.cpp b/library/cpp/xml/document/xml-document.cpp
index 18a554d732..562269473d 100644
--- a/library/cpp/xml/document/xml-document.cpp
+++ b/library/cpp/xml/document/xml-document.cpp
@@ -316,21 +316,21 @@ namespace NXml {
void TNode::SaveInternal(IOutputStream& stream, TZtStringBuf enc, int options) const {
const char* encoding = enc.size() ? enc.data() : "utf-8";
TSaveCtxtPtr ctx(xmlSaveToIO(XmlWriteToOstream, /* close */ nullptr, &stream,
- encoding, options));
+ encoding, options));
if (xmlSaveTree(ctx.Get(), (xmlNode*)GetPtr()) < 0)
THROW(XmlException, "Failed saving node to stream");
}
void TNode::Save(IOutputStream& stream, TZtStringBuf enc, bool shouldFormat) const {
- SaveInternal(stream, enc, shouldFormat ? XML_SAVE_FORMAT : 0);
- }
-
+ SaveInternal(stream, enc, shouldFormat ? XML_SAVE_FORMAT : 0);
+ }
+
void TNode::SaveAsHtml(IOutputStream& stream, TZtStringBuf enc, bool shouldFormat) const {
- int options = XML_SAVE_AS_HTML;
- options |= shouldFormat ? XML_SAVE_FORMAT : 0;
- SaveInternal(stream, enc, options);
- }
-
+ int options = XML_SAVE_AS_HTML;
+ options |= shouldFormat ? XML_SAVE_FORMAT : 0;
+ SaveInternal(stream, enc, options);
+ }
+
TConstNodes::TConstNodes(const TConstNodes& nodes)
: SizeValue(nodes.Size())
, Doc(nodes.Doc)