From f7d14418580593914dce6439fba589690d5ce378 Mon Sep 17 00:00:00 2001 From: alexey-milovidov Date: Fri, 11 Dec 2020 00:09:52 +0300 Subject: [PATCH] Update WriteHelpers.h --- src/IO/WriteHelpers.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/IO/WriteHelpers.h b/src/IO/WriteHelpers.h index 0fc0db2651f..91262743a34 100644 --- a/src/IO/WriteHelpers.h +++ b/src/IO/WriteHelpers.h @@ -604,17 +604,20 @@ inline void writeXMLStringForTextElementOrAttributeValue(const char * begin, con buf.write(pos, next_pos - pos); ++next_pos; writeCString("&", buf); - }else if (*next_pos == '>') + } + else if (*next_pos == '>') { buf.write(pos, next_pos - pos); ++next_pos; writeCString(">", buf); - }else if (*next_pos == '"') + } + else if (*next_pos == '"') { buf.write(pos, next_pos - pos); ++next_pos; writeCString(""", buf); - }else if (*next_pos == '\'') + } + else if (*next_pos == '\'') { buf.write(pos, next_pos - pos); ++next_pos;