Menu

#2 ShowBodyOnly incompatibility causes asert()

open
nobody
None
5
2008-01-06
2008-01-06
Anonymous
No

With the TidyHtml lib as of 17 august 2007 in combination with the C# wrapper, it causes an assert in config.c on line 396 because the wrapper uses an bool while Tidy expects an AutoBool.

Changing ShowBodyOnly in Settings.Cs to use an AutoBool fixes this:

----
public AutoBool ShowBodyOnly
{
get
{
return document.GetOptionAutoBool(TidyOptionId.BodyOnly);
}
set
{
document.SetOption(TidyOptionId.BodyOnly, value);
}
}
----

Discussion


Log in to post a comment.