]> Git trees. - libqmvoc.git/commitdiff
Only write comment tag when not empty.
authorFrederik Gladhorn <gladhorn@kde.org>
Wed, 17 Oct 2007 13:13:27 +0000 (13:13 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Wed, 17 Oct 2007 13:13:27 +0000 (13:13 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=726294

keduvocdocument/keduvockvtml2writer.cpp

index 62d348842edd27aa130e1049c92cbfeb4060b122..cec8e425dca4857804fd2ab5b9c7586d526009c8 100644 (file)
@@ -392,7 +392,9 @@ bool KEduVocKvtml2Writer::writeTranslation( QDomElement &translationElement, KEd
     }
 
     // <comment></comment>
-    translationElement.appendChild( newTextElement( KVTML_COMMENT, translation.comment() ) );
+    if ( !translation.comment().isEmpty() ) {
+        translationElement.appendChild( newTextElement( KVTML_COMMENT, translation.comment() ) );
+    }
 
     // <pronunciation></pronunciation>
     if ( !translation.pronunciation().isEmpty() ) {