diff --git a/PocoDoc/src/DocWriter.cpp b/PocoDoc/src/DocWriter.cpp index f5881e2fe..05c933241 100644 --- a/PocoDoc/src/DocWriter.cpp +++ b/PocoDoc/src/DocWriter.cpp @@ -2195,9 +2195,9 @@ void DocWriter::writePage(Page& page) while (ch != -1 && ch != '\n') { category += (char) ch; ch = istr.get(); } while (std::isspace(ch)) ch = istr.get(); - while (ch != -1) + while (ch != -1) { - text += (char) ch; + text += (char) ch; if (ch == '\n') text += ' '; ch = istr.get(); } @@ -2216,7 +2216,7 @@ void DocWriter::writePage(Page& page) beginBody(ostr); writeNavigationFrame(ostr, "category", category); beginContent(ostr); - if (!toc.empty()) + if (!toc.empty()) { writeTOC(ostr, toc); } @@ -2284,7 +2284,7 @@ void DocWriter::writeTOC(std::ostream& ostr, const TOC& toc) ostr << "" << std::endl; } } - else + else { ostr << "" << std::endl; } diff --git a/PocoDoc/src/PocoDoc.cpp b/PocoDoc/src/PocoDoc.cpp index f19c14115..561d3ef0c 100644 --- a/PocoDoc/src/PocoDoc.cpp +++ b/PocoDoc/src/PocoDoc.cpp @@ -252,6 +252,9 @@ protected: Environment::set("PATH", path); } + logger().debug("exec " + exec); + logger().debug("path " + path); + if (usePipe) { Poco::Pipe inPipe; @@ -269,11 +272,7 @@ protected: void parse(const std::string& file) { logger().information("Preprocessing " + file); -#ifndef POCO_ENABLE_CPP11 - std::auto_ptr pPreProc(preprocess(file)); -#else std::unique_ptr pPreProc(preprocess(file)); -#endif // POCO_ENABLE_CPP11 logger().information("Parsing " + file); if (pPreProc->stream().good()) {