summaryrefslogtreecommitdiffabout
path: root/lib
authorMichael Krelin <hacker@klever.net>2008-06-29 18:47:27 (UTC)
committer Michael Krelin <hacker@klever.net>2008-06-29 18:47:27 (UTC)
commit73f6183b26b1ebc460a27554b71e44037c07e09c (patch) (unidiff)
treeebb9d9af6008a3946220e1b65f6b464ccf687546 /lib
parent12837594b705ad10fdadfd0ba1bfc2249b3b1264 (diff)
downloadlibopkele-73f6183b26b1ebc460a27554b71e44037c07e09c.zip
libopkele-73f6183b26b1ebc460a27554b71e44037c07e09c.tar.gz
libopkele-73f6183b26b1ebc460a27554b71e44037c07e09c.tar.bz2
fixed debugging info settings for htmltidy
Thanks to Brian Muller for spotting it! Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'lib') (more/less context) (ignore whitespace changes)
-rw-r--r--lib/discovery.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/discovery.cc b/lib/discovery.cc
index 984e308..bd1f917 100644
--- a/lib/discovery.cc
+++ b/lib/discovery.cc
@@ -250,15 +250,18 @@ namespace opkele {
250 }else if(xmode&xmode_html){ 250 }else if(xmode&xmode_html){
251 /* TODO: do not bother if we've seen xml */ 251 /* TODO: do not bother if we've seen xml */
252 try { 252 try {
253 util::tidy_doc_t td = util::tidy_doc_t::create(); 253 util::tidy_doc_t td = util::tidy_doc_t::create();
254 if(!td) 254 if(!td)
255 throw exception_tidy(OPKELE_CP_ "failed to create htmltidy document"); 255 throw exception_tidy(OPKELE_CP_ "failed to create htmltidy document");
256#ifndef NDEBUG 256#ifdef NDEBUG
257 td.opt_set(TidyQuiet,false); 257 td.opt_set(TidyQuiet,true);
258 td.opt_set(TidyShowWarnings,false); 258 td.opt_set(TidyShowWarnings,false);
259#else /* NDEBUG */
260 td.opt_set(TidyQuiet,false);
261 td.opt_set(TidyShowWarnings,true);
259#endif /* NDEBUG */ 262#endif /* NDEBUG */
260 td.opt_set(TidyForceOutput,true); 263 td.opt_set(TidyForceOutput,true);
261 td.opt_set(TidyXhtmlOut,true); 264 td.opt_set(TidyXhtmlOut,true);
262 td.opt_set(TidyDoctypeMode,TidyDoctypeOmit); 265 td.opt_set(TidyDoctypeMode,TidyDoctypeOmit);
263 td.opt_set(TidyMark,false); 266 td.opt_set(TidyMark,false);
264 td.opt_set(TidyNumEntities,true); 267 td.opt_set(TidyNumEntities,true);