Changeset 333

Show
Ignore:
Timestamp:
06/06/08 10:59:27 (3 months ago)
Author:
geiseri
Message:

make table borders solid and match the text color.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • projects/MyPoint/src/pdfslidereporter.cpp

    r332 r333  
    279279 
    280280        QTextDocument tableDoc; 
    281         tableDoc.setDefaultStyleSheet("p, li { white-space: pre-wrap; }"); 
     281        tableDoc.setDefaultStyleSheet("table { border-style: solid; border-color: black; }"); 
    282282        tableDoc.setHtml( printTable(block) ); 
    283283 
     
    452452        if( !block->table().isEmpty() ) 
    453453        { 
    454                 table += "<table>"; 
     454                table += "<table border=\"1\" cellpadding=\"3\" cellspacing=\"0\" WIDTH=\"100%\">"; 
    455455                foreach( QStringList line, block->table() ) 
    456456                { 
    457457                        table += "<tr>"; 
    458458                        foreach( QString cell, line ) 
    459                                 table += "<td>" + SimpleParser::formatWikiText( cell ) + "</td>"; 
     459                                table += "<td align=\"center\" valign=\"middle\">" + SimpleParser::formatWikiText( cell ) + "</td>"; 
    460460                        table += "</tr>"; 
    461461                }