Skip to content

Commit

Permalink
Fixed regression, background color CSS.
Browse files Browse the repository at this point in the history
  • Loading branch information
UweKeim committed Nov 5, 2013
1 parent f84984a commit 4474e77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ private static string doTranslate(string html)
{
foreach (var node in nodes)
{
if (node.HasInlineCssWithName(@"background-color"))
{
node.Name = @"font";
}

if (node.HasInlineCssWithName(@"color"))
{
node.Name = @"font";
Expand Down
2 changes: 1 addition & 1 deletion Source/Test/TestFormForScreenshots.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private void TestForm_Shown(object sender, EventArgs e)

const string s3 = @"<p>ZetaHtmlEditControl.Code.HttpServer<br />
{<br />
<span style=""background-color: rgb(0, 255, 0);"">using System.Globalization;<br />
<span style=""background-color: #00FF00"">using System.Globalization;<br />
using System.Diagnostics;<br />
using System.Configuration;<br />
using System.Collections.Generic;<br />
Expand Down

0 comments on commit 4474e77

Please sign in to comment.