Problems with Indent - HTML TIDY

Luana Knoff <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
Hi all,

I need to tidy a HTML document that is in a string in my code. I am using the library HTML TIDY (C) and using the instruction: tidyOptSetBool (tdoc, TidyIndentContent, yes);  
  
In the execution appears a mistake: Assertion failed: option_defs [optId]. type == TidyBoolean, crib c:\documents an d settings\lua\desktop\html_tidy\config.c, line 342  and I don't know what to do to correct that.  
Here it is a part of the code:  
  
TidyBuffer output = {0};  
  TidyBuffer errbuf = {0};  
  int rc = -1;  
  Bool ok;  
  
TidyDoc tdoc = tidyCreate ();  
ok = tidyOptSetBool (tdoc, TidyXhtmlOut, yes);   
if (ok)  
  rc = tidySetErrorBuffer (tdoc, & errbuf);   
  
 if (rc >= 0)  
  rc = tidyParseString (tdoc, test);     
  
  
 if (rc>=0)  
    rc = tidyOptSetBool (tdoc, TidyIndentContent, yes);  //the execution is stopping here


Any hints are welcome.



		
---------------------------------
 Abra sua conta no Yahoo! Mail - 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.