diff options
author | Ken Martin <ken.martin@kitware.com> | 2007-10-09 18:35:25 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2007-10-09 18:35:25 (GMT) |
commit | 35e13b11f3cce42944e367543b082e7774201e50 (patch) | |
tree | 20d811344c7e488cebe7596016601eb71cc12014 /Source/cmDocumentationFormatterHTML.cxx | |
parent | 18ce24c7486fedc792276721515c9ddefc62ebee (diff) | |
download | CMake-35e13b11f3cce42944e367543b082e7774201e50.zip CMake-35e13b11f3cce42944e367543b082e7774201e50.tar.gz CMake-35e13b11f3cce42944e367543b082e7774201e50.tar.bz2 |
BUG: revert doc changes since VS7 cannot compile them, will implement them in a different manner
Diffstat (limited to 'Source/cmDocumentationFormatterHTML.cxx')
-rw-r--r-- | Source/cmDocumentationFormatterHTML.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/Source/cmDocumentationFormatterHTML.cxx b/Source/cmDocumentationFormatterHTML.cxx index 010f003..16823b1 100644 --- a/Source/cmDocumentationFormatterHTML.cxx +++ b/Source/cmDocumentationFormatterHTML.cxx @@ -33,13 +33,13 @@ static void cmDocumentationPrintHTMLChar(std::ostream& os, char c) // Use an escape sequence if necessary. static cmDocumentationEntry escapes[] = { - {"<", "<", ""}, - {">", ">", ""}, - {"&", "&", ""}, - {"\n", "<br>", ""}, - {"","",""} + {"<", "<", 0}, + {">", ">", 0}, + {"&", "&", 0}, + {"\n", "<br>", 0}, + {0,0,0} }; - for(const cmDocumentationEntry* op = escapes; op->name.size(); ++op) + for(const cmDocumentationEntry* op = escapes; op->name; ++op) { if(op->name[0] == c) { @@ -97,25 +97,25 @@ void cmDocumentationFormatterHTML::PrintSection(std::ostream& os, os << "<h2>" << name << "</h2>\n"; } if(!section) { return; } - for(const cmDocumentationEntry* op = section; op->brief.size();) + for(const cmDocumentationEntry* op = section; op->brief;) { - if(op->name.size()) + if(op->name) { os << "<ul>\n"; - for(;op->name.size();++op) + for(;op->name;++op) { os << " <li>\n"; if(op->name[0]) { os << " <b><code>"; - this->PrintHTMLEscapes(os, op->name.c_str()); + this->PrintHTMLEscapes(os, op->name); os << "</code></b>: "; } - this->PrintHTMLEscapes(os, op->brief.c_str()); - if(op->full.size()) + this->PrintHTMLEscapes(os, op->brief); + if(op->full) { os << "<br>\n "; - this->PrintFormatted(os, op->full.c_str()); + this->PrintFormatted(os, op->full); } os << "\n"; os << " </li>\n"; @@ -124,7 +124,7 @@ void cmDocumentationFormatterHTML::PrintSection(std::ostream& os, } else { - this->PrintFormatted(os, op->brief.c_str()); + this->PrintFormatted(os, op->brief); os << "\n"; ++op; } |