|
|
@ -305,7 +305,7 @@ PoInfo PoInfo::headerInfo(const CatalogItem& headerItem)
|
|
|
|
TQString value=(*it).mid(res+1);
|
|
|
|
TQString value=(*it).mid(res+1);
|
|
|
|
// "Chop" the \n at the end
|
|
|
|
// "Chop" the \n at the end
|
|
|
|
if (value.endsWith("\\n"))
|
|
|
|
if (value.endsWith("\\n"))
|
|
|
|
value.remove(value.length()-2,2); // ### TQt4: use value.chop(2)
|
|
|
|
value.remove(value.length()-2,2);
|
|
|
|
value=value.simplifyWhiteSpace();
|
|
|
|
value=value.simplifyWhiteSpace();
|
|
|
|
kdDebug(KBABEL) << "Header key: " << key << " value: " << value << endl;
|
|
|
|
kdDebug(KBABEL) << "Header key: " << key << " value: " << value << endl;
|
|
|
|
if (key=="Project-Id-Version")
|
|
|
|
if (key=="Project-Id-Version")
|
|
|
@ -335,7 +335,7 @@ PoInfo PoInfo::headerInfo(const CatalogItem& headerItem)
|
|
|
|
TQString line=(*it);
|
|
|
|
TQString line=(*it);
|
|
|
|
|
|
|
|
|
|
|
|
if(line.right(2)=="\\n")
|
|
|
|
if(line.right(2)=="\\n")
|
|
|
|
line.remove(line.length()-2,2); // ### TQt4: use value.chop(2)
|
|
|
|
line.remove(line.length()-2,2);
|
|
|
|
|
|
|
|
|
|
|
|
if(!info.others.isEmpty())
|
|
|
|
if(!info.others.isEmpty())
|
|
|
|
info.others+='\n';
|
|
|
|
info.others+='\n';
|
|
|
|