Changeset 0ffa8c4


Ignore:
Timestamp:
11/14/13 11:06:38 (17 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1
Children:
ec5b219, a847f63
Parents:
247c032
Message:

Remove that special debugging output: it looks like the problem is not in my parser, but the actual raw description did not have any line breaks added. This might be because the PBI built before the fixes for parsing the package description were put in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/pbiDBAccess.cpp

    r247c032 r0ffa8c4  
    213213  //Format the output list 
    214214  QStringList output; 
    215   bool DEBUG = (list[0].toLower()=="xastir"); 
     215  //bool DEBUG = (list[0].toLower()=="xastir"); 
    216216  if(list.length() < 13){ return output;} //invalid line 
    217217  output << list[0]; //NAME 
     
    225225  //Cleanup the description (try to format the text properly) 
    226226  QStringList tmp = list[8].split("<br>"); 
    227   if(DEBUG){ qDebug() << "Raw Description:\n" << list[8]; } 
     227  //if(DEBUG){ qDebug() << "Raw Description:\n" << list[8]; } 
    228228  for(int i=1; i<tmp.length(); i++){ 
    229229    tmp[i-1] = tmp[i-1].simplified(); 
     
    232232    else if( tmp[i].startsWith("*") || tmp[i].startsWith("0") || tmp[i].startsWith("-") || tmp[i].startsWith("o ") ){} 
    233233    else{ 
    234       if(DEBUG){ qDebug() << " - Bad Line Break:\n" << tmp[i-1] << "<br>" << tmp[i]; } 
     234      //if(DEBUG){ qDebug() << " - Bad Line Break:\n" << tmp[i-1] << "<br>" << tmp[i]; } 
    235235      //Bad line break, combine it with the previous line 
    236236      tmp[i-1].append(" "+tmp[i]); 
Note: See TracChangeset for help on using the changeset viewer.