From 049a26010260c95c7802797206b928b14dff6fe8 Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Tue, 10 Dec 2024 11:17:51 -0800 Subject: [PATCH] Remove superfluous newlines in Schema exception messages. PiperOrigin-RevId: 704781176 Change-Id: Ie23ac2deab4a5173e1e7a60ffe9e751fe054a2dc --- src/xml/xml_native_reader.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/xml/xml_native_reader.cc b/src/xml/xml_native_reader.cc index e25626d2..70d3342b 100644 --- a/src/xml/xml_native_reader.cc +++ b/src/xml/xml_native_reader.cc @@ -837,15 +837,13 @@ void mjXReader::PrintSchema(std::stringstream& str, bool html, bool pad) { void mjXReader::Parse(XMLElement* root, const mjVFS* vfs) { // check schema if (!schema.GetError().empty()) { - throw mjXError(0, "XML Schema Construction Error: %s\n", - schema.GetError().c_str()); + throw mjXError(0, "XML Schema Construction Error: %s", schema.GetError().c_str()); } // validate XMLElement* bad = 0; if ((bad = schema.Check(root, 0))) { - throw mjXError(bad, "Schema violation: %s\n", - schema.GetError().c_str()); + throw mjXError(bad, "Schema violation: %s", schema.GetError().c_str()); } // get model name