From: Frederik Gladhorn Date: Wed, 17 Oct 2007 13:13:27 +0000 (+0000) Subject: Only write comment tag when not empty. X-Git-Tag: v3.95.0~8 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=f6534e04e2c09c13c17032c76f889ff66e4186d8;p=libqmvoc.git Only write comment tag when not empty. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=726294 --- diff --git a/keduvocdocument/keduvockvtml2writer.cpp b/keduvocdocument/keduvockvtml2writer.cpp index 62d3488..cec8e42 100644 --- a/keduvocdocument/keduvockvtml2writer.cpp +++ b/keduvocdocument/keduvockvtml2writer.cpp @@ -392,7 +392,9 @@ bool KEduVocKvtml2Writer::writeTranslation( QDomElement &translationElement, KEd } // - translationElement.appendChild( newTextElement( KVTML_COMMENT, translation.comment() ) ); + if ( !translation.comment().isEmpty() ) { + translationElement.appendChild( newTextElement( KVTML_COMMENT, translation.comment() ) ); + } // if ( !translation.pronunciation().isEmpty() ) {