Changeset 247c032


Ignore:
Timestamp:
11/14/13 11:03:14 (21 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, enter/10, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
0ffa8c4
Parents:
8d4e4d62
Message:

Add a specialized debug statement(s) to the new meta-file parser: trying to figure out why a particular application is having it's description run together.

File:
1 edited

Legend:

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

    r8d4e4d62 r247c032  
    213213  //Format the output list 
    214214  QStringList output; 
     215  bool DEBUG = (list[0].toLower()=="xastir"); 
    215216  if(list.length() < 13){ return output;} //invalid line 
    216217  output << list[0]; //NAME 
     
    224225  //Cleanup the description (try to format the text properly) 
    225226  QStringList tmp = list[8].split("<br>"); 
     227  if(DEBUG){ qDebug() << "Raw Description:\n" << list[8]; } 
    226228  for(int i=1; i<tmp.length(); i++){ 
    227229    tmp[i-1] = tmp[i-1].simplified(); 
     
    230232    else if( tmp[i].startsWith("*") || tmp[i].startsWith("0") || tmp[i].startsWith("-") || tmp[i].startsWith("o ") ){} 
    231233    else{ 
     234      if(DEBUG){ qDebug() << " - Bad Line Break:\n" << tmp[i-1] << "<br>" << tmp[i]; } 
    232235      //Bad line break, combine it with the previous line 
    233236      tmp[i-1].append(" "+tmp[i]); 
Note: See TracChangeset for help on using the changeset viewer.