Skip to content

Commit

Permalink
Added wrap text support
Browse files Browse the repository at this point in the history
  • Loading branch information
tillwolff committed Sep 18, 2018
1 parent 4a981cb commit df5a32c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion EPPlus.Html.Test/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Program

static void Main(string[] args)
{
var package = new ExcelPackage(new FileInfo(CurrentLocation + "/Resources/Test001.xlsx"));
var package = new ExcelPackage(Test001);
var worksheet = package.Workbook.Worksheets[1];

string html = worksheet.ToHtml();
Expand Down
1 change: 1 addition & 0 deletions EPPlus.Html/Converters/ExcelToCss.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ internal static CssDeclaration ToCss(this ExcelStyle excelStyle)
css["text-align"] = excelStyle.HorizontalAlignment.ToCssProperty();
css["background-color"] = excelStyle.Fill.BackgroundColor.ToHexCode();
css["overflow"] = excelStyle.HorizontalAlignment == ExcelHorizontalAlignment.Fill ? "hidden" : null;
css["white-space"] = excelStyle.WrapText ? "normal" : null;
css.Update(excelStyle.Font.ToCss());
css.Update(excelStyle.Border.ToCss());
return css;
Expand Down

0 comments on commit df5a32c

Please sign in to comment.