From 80cdb9dbaf6a045e943ba14deab0e546f3305211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Mon, 20 Jun 2016 16:51:36 +0200 Subject: [PATCH] Caf: Adjusted output of references from PtrArrayField --- .../cafPdmXml/cafInternalPdmXmlFieldCapability.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fwk/AppFwk/cafProjectDataModel/cafPdmXml/cafInternalPdmXmlFieldCapability.inl b/Fwk/AppFwk/cafProjectDataModel/cafPdmXml/cafInternalPdmXmlFieldCapability.inl index 64f7e1e1ce..2bebe739a2 100644 --- a/Fwk/AppFwk/cafProjectDataModel/cafPdmXml/cafInternalPdmXmlFieldCapability.inl +++ b/Fwk/AppFwk/cafProjectDataModel/cafPdmXml/cafInternalPdmXmlFieldCapability.inl @@ -151,7 +151,7 @@ template for (size_t i = 0; i < pointerCount; ++i) { dataString += PdmReferenceHelper::referenceFromFieldToObject(m_field, m_field->m_pointers[i].rawPtr()); - if (i < pointerCount-1) dataString += "|\n"; + if (!dataString.isEmpty() && i < pointerCount-1) dataString += " | \n\t"; } xmlStream.writeCharacters(dataString); }