From 73f6183b26b1ebc460a27554b71e44037c07e09c Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sun, 29 Jun 2008 18:47:27 +0000 Subject: fixed debugging info settings for htmltidy Thanks to Brian Muller for spotting it! Signed-off-by: Michael Krelin --- (limited to 'lib/discovery.cc') diff --git a/lib/discovery.cc b/lib/discovery.cc index 984e308..bd1f917 100644 --- a/lib/discovery.cc +++ b/lib/discovery.cc @@ -253,9 +253,12 @@ namespace opkele { util::tidy_doc_t td = util::tidy_doc_t::create(); if(!td) throw exception_tidy(OPKELE_CP_ "failed to create htmltidy document"); -#ifndef NDEBUG - td.opt_set(TidyQuiet,false); +#ifdef NDEBUG + td.opt_set(TidyQuiet,true); td.opt_set(TidyShowWarnings,false); +#else /* NDEBUG */ + td.opt_set(TidyQuiet,false); + td.opt_set(TidyShowWarnings,true); #endif /* NDEBUG */ td.opt_set(TidyForceOutput,true); td.opt_set(TidyXhtmlOut,true); -- cgit v0.9.0.2