Changeset 1088


Ignore:
Timestamp:
02/26/10 15:25:01 (2 years ago)
Author:
jharrop
Message:

Paragraphs of large text in a box with a border, need a reduced top-margin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/pptx4j/java/org/pptx4j/convert/out/svginhtml/SvgExporter.java

    r1087 r1088  
    170170                         
    171171 
     172                        StringBuffer inlineStyle =  new StringBuffer(); 
    172173                        // Do we have CTTextParagraphProperties 
    173174                        // <a:lvl?pPr> 
     
    184185                                PPr pPr = TextStyles.getWmlPPr(lvlPPr); 
    185186                                if (pPr!=null) { 
    186                                         StringBuffer inlineStyle =  new StringBuffer(); 
    187187                                        HtmlExporterNG.createCss(pPr, inlineStyle);                              
    188                                         if (!inlineStyle.toString().equals("") ) { 
    189                                                 ((Element)xhtmlP).setAttribute("style", inlineStyle.toString() ); 
    190                                         } 
    191188                                } 
    192189                                // TODO RPR 
     190                        } 
     191                        // Without this, top-margin is too large in Webkit (Midor). 
     192                        // Not tested elsewhere... 
     193                        inlineStyle.append("margin-left:3px; margin-top:3px;"); 
     194                         
     195                        if (!inlineStyle.toString().equals("") ) { 
     196                                ((Element)xhtmlP).setAttribute("style", inlineStyle.toString() ); 
    193197                        } 
    194198                         
Note: See TracChangeset for help on using the changeset viewer.