]> source.dussan.org Git - poi.git/commitdiff
compact css
authorSergey Vladimirov <sergey@apache.org>
Thu, 27 Oct 2011 06:17:03 +0000 (06:17 +0000)
committerSergey Vladimirov <sergey@apache.org>
Thu, 27 Oct 2011 06:17:03 +0000 (06:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1189624 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java

index b00866488c492333ad940e29f72dcaf39ad37760..ee421d481019a62b0f3823d513efd9476fe134f9 100644 (file)
@@ -153,7 +153,7 @@ public class ExcelToHtmlConverter extends AbstractExcelConverter
     {
         StringBuilder style = new StringBuilder();
 
-        style.append( "white-space: pre-wrap; " );
+        style.append( "white-space:pre-wrap;" );
         ExcelToHtmlUtils.appendAlign( style, cellStyle.getAlignment() );
 
         if ( cellStyle.getFillPattern() == 0 )
@@ -165,16 +165,16 @@ public class ExcelToHtmlConverter extends AbstractExcelConverter
             final HSSFColor foregroundColor = cellStyle
                     .getFillForegroundColorColor();
             if ( foregroundColor != null )
-                style.append( "background-color: "
-                        + ExcelToHtmlUtils.getColor( foregroundColor ) + "; " );
+                style.append( "background-color:"
+                        + ExcelToHtmlUtils.getColor( foregroundColor ) + ";" );
         }
         else
         {
             final HSSFColor backgroundColor = cellStyle
                     .getFillBackgroundColorColor();
             if ( backgroundColor != null )
-                style.append( "background-color: "
-                        + ExcelToHtmlUtils.getColor( backgroundColor ) + "; " );
+                style.append( "background-color:"
+                        + ExcelToHtmlUtils.getColor( backgroundColor ) + ";" );
         }
 
         buildStyle_border( workbook, style, "top", cellStyle.getBorderTop(),
@@ -211,7 +211,7 @@ public class ExcelToHtmlConverter extends AbstractExcelConverter
             borderStyle.append( ExcelToHtmlUtils.getColor( color ) );
         }
 
-        style.append( "border-" + type + ": " + borderStyle + "; " );
+        style.append( "border-" + type + ":" + borderStyle + ";" );
     }
 
     void buildStyle_font( HSSFWorkbook workbook, StringBuilder style,
@@ -220,7 +220,7 @@ public class ExcelToHtmlConverter extends AbstractExcelConverter
         switch ( font.getBoldweight() )
         {
         case HSSFFont.BOLDWEIGHT_BOLD:
-            style.append( "font-weight: bold; " );
+            style.append( "font-weight:bold;" );
             break;
         case HSSFFont.BOLDWEIGHT_NORMAL:
             // by default, not not increase HTML size
@@ -235,11 +235,11 @@ public class ExcelToHtmlConverter extends AbstractExcelConverter
                     + "; " );
 
         if ( font.getFontHeightInPoints() != 0 )
-            style.append( "font-size: " + font.getFontHeightInPoints() + "pt; " );
+            style.append( "font-size:" + font.getFontHeightInPoints() + "pt;" );
 
         if ( font.getItalic() )
         {
-            style.append( "font-style: italic; " );
+            style.append( "font-style:italic;" );
         }
     }