You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also experience this. I copied the readme example into a VS unit test project with libtidy.dll added to the project and set to CopyAlways. It will copy on the first build and execute of the test but subsequent cleans and build do not delete or copy until VS is restarted.
Even if I use TidyManaged.Document in a using block, the handle to libtidy.dll is not released.
I am using this on an Azure website and when I try to publish the site, I get an error that the file libtidy.dll is locked by an external process.
Here is a code snippet of our usage
using (Document doc = Document.FromString(body))
{
doc.ShowWarnings = false;
doc.Quiet = true;
doc.OutputXhtml = true;
doc.IndentBlockElements = AutoBool.Yes;
doc.IndentAttributes = false;
doc.IndentCdata = true;
doc.AddVerticalSpace = false;
doc.WrapAt = 120;
doc.DocType = DocTypeMode.Omit;
doc.OutputBodyOnly = AutoBool.Yes;
doc.PreserveEntities = true;
doc.CleanAndRepair();
model.Body = doc.Save();
model.Status = "Success";
return Json(model);
}
The text was updated successfully, but these errors were encountered: