From f6534e04e2c09c13c17032c76f889ff66e4186d8 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Wed, 17 Oct 2007 13:13:27 +0000 Subject: [PATCH] Only write comment tag when not empty. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=726294 --- keduvocdocument/keduvockvtml2writer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() ) { -- 2.47.3