From 913788f77c3f501778b7653317a4a6b06452961d Mon Sep 17 00:00:00 2001 From: eilers Date: Mon, 08 Sep 2003 12:42:26 +0000 Subject: Fixing bug #1161: No space between jobtitle and organization --- (limited to 'libopie') diff --git a/libopie/pim/ocontact.cpp b/libopie/pim/ocontact.cpp index 0f05b65..fcf3b26 100644 --- a/libopie/pim/ocontact.cpp +++ b/libopie/pim/ocontact.cpp @@ -448,19 +448,15 @@ QString OContact::toRichText() const text += "

" + Qtopia::escapeString(value) + "

"; if ( !(value = jobTitle()).isEmpty() ) - text += Qtopia::escapeString(value); + text += Qtopia::escapeString(value) + " "; comp = company(); if ( !(value = department()).isEmpty() ) { text += Qtopia::escapeString(value); if ( comp ) - text += ", "; - else - text += "
"; - } - if ( !comp.isEmpty() ) - text += Qtopia::escapeString(comp); - + text += ", " + Qtopia::escapeString(comp); + }else if ( comp ) + text += "
" + Qtopia::escapeString(comp); text += "

"; // defailt email -- cgit v0.9.0.2