diff --git a/src/ifcconvert/SvgSerializer.cpp b/src/ifcconvert/SvgSerializer.cpp index 6d5ff4deaa..43677966e5 100644 --- a/src/ifcconvert/SvgSerializer.cpp +++ b/src/ifcconvert/SvgSerializer.cpp @@ -321,7 +321,9 @@ void SvgSerializer::finalize() { first = false; } - svg_file << " \n"; + if (!first) { + svg_file << " \n"; + } svg_file << "" << std::endl; }