Skip to content

Commit

Permalink
Merge pull request #1407 from wuzxc1230123/fix/ExcelToHtmlConverter
Browse files Browse the repository at this point in the history
fix: AddStyleClass no update newClassValue
  • Loading branch information
tonyqus committed Aug 22, 2024
2 parents 584c9a7 + 131ca3d commit 282c9e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/SS/HtmlDocumentFacade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void AddStyleClass(XmlElement element, string classNamePrefix, string sty
string addition = GetOrCreateCssClass(element.Name, classNamePrefix, style);
string newClassValue = string.IsNullOrEmpty(exising) ? addition
: (exising + " " + addition);
element.GetAttribute("class", newClassValue);
element.SetAttribute("class", newClassValue);
}

public XmlElement CreateBlock()
Expand Down

0 comments on commit 282c9e5

Please sign in to comment.