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
commit7597bb840e100a7acf04459a48562c75b439f467 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/xml/document/xml-document.cpp
parent12c01f0701d50bc3f68eb36add9bff803ca94f35 (diff)
downloadydb-7597bb840e100a7acf04459a48562c75b439f467.tar.gz
Restoring authorship annotation for <i-sokolov@yandex-team.ru>. Commit 2 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 562269473d..18a554d732 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)