BUG: revert doc changes since VS7 cannot compile them, will implement them in a different manner

This commit is contained in:
Ken Martin
2007-10-09 14:35:25 -04:00
parent 18ce24c748
commit 35e13b11f3
15 changed files with 212 additions and 215 deletions

View File

@@ -33,13 +33,13 @@ static void cmDocumentationPrintHTMLChar(std::ostream& os, char c)
// Use an escape sequence if necessary.
static cmDocumentationEntry escapes[] =
{
{"<", "&lt;", ""},
{">", "&gt;", ""},
{"&", "&amp;", ""},
{"\n", "<br>", ""},
{"","",""}
{"<", "&lt;", 0},
{">", "&gt;", 0},
{"&", "&amp;", 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;
}