diff --git a/src/common/xml_element_writer.cpp b/src/common/xml_element_writer.cpp index 57a9d1237..b98801342 100644 --- a/src/common/xml_element_writer.cpp +++ b/src/common/xml_element_writer.cpp @@ -46,7 +46,7 @@ print_binary(int level, ascii_only = true; for (i = 0; i < size; i++) - if ((p[i] < ' ') || (p[i] > 127)) { + if ((p[i] != '\n') && (p[i] != '\r') && ((p[i] < ' ') || (p[i] >= 127))) { ascii_only = false; break; }