From f563412004c3568b1d072ba7b9f144de319cdde4 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Thu, 27 Oct 2011 06:17:03 +0000 Subject: [PATCH] compact css git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1189624 13f79535-47bb-0310-9956-ffa450edef68 --- .../hssf/converter/ExcelToHtmlConverter.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java b/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java index b00866488c..ee421d4810 100644 --- a/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java +++ b/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java @@ -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;" ); } } -- 2.39.5